MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / UTIL_PlayerByIndex

Function UTIL_PlayerByIndex

src/game/server/util.cpp:561–575  ·  view source on GitHub ↗

returns a CBaseEntity pointer to a player by index. Only returns if the player is spawned and connected otherwise returns NULL Index is 1 based

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

UpdateAllClientDataFunction · 0.70
InputSaveDangerousMethod · 0.70
ForEachActorFunction · 0.70
HintMatchesCriteriaMethod · 0.70
WatcherThinkMethod · 0.70
Weapon_DropMethod · 0.70
ChangeRelationshipsMethod · 0.70
TouchMethod · 0.70
SetupVoteMethod · 0.70

Calls 3

INDEXENTFunction · 0.85
GetContainingEntityFunction · 0.85
IsFreeMethod · 0.80

Tested by 2

OnTickMethod · 0.40
OnCommandMethod · 0.40