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 client, int 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.