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

Function UTIL_PlayerByCommandArg

src/game/shared/util_shared.cpp:1072–1101  ·  view source on GitHub ↗

Helper for use with console commands and the like. Returns NULL if not found or if the provided arg would match multiple players. Currently accepts, in descending priority: - Formatted SteamID ([U:1:1234]) - SteamID64 (76561123412341234) - Legacy SteamID (STEAM_0:1:1234) - UserID preceded by a pound (#4) - Partial name match (if unique) - UserID not preceded by a pound Does not count as ambiguous

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

SpecPlayerByPredicateMethod · 0.85
SpecPlayerByPredicateMethod · 0.85
ClientCommandMethod · 0.85

Calls 2

V_strlenFunction · 0.85
V_isdigitFunction · 0.85

Tested by

no test coverage detected