Thread: [TF2] TF2 Utils
View Single Post
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 01-21-2023 , 18:51   Re: [TF2] TF2 Utils
Reply With Quote #5

Can you provide an example of how to use this function?

PHP Code:
/**
 * Returns the healer entity index at the given index in the player's healer array.
 * To get the number of healers available, use the m_nNumHealers netprop.
 * 
 * @return    Healer entity index at the given array index, or -1 on invalid healer entity
 *            reference.
 * @error     Index is out of bounds.
 */
native int TF2Util_GetPlayerHealer(int clientint index); 
I'm trying to determine who is targeting me with the medigun beam which happens even if I'm currently at full health and not being healed. I thought maybe this function could help with that but I don't understand what index is supposed to be passed to the function.

Last edited by PC Gamer; 01-21-2023 at 18:51.
PC Gamer is offline