Get Spectarget
Posted: Fri Jan 01, 2016 7:33 pm
Hey how can i get the spectarget?
Tried something like this
Would that work? Didn't tested it
Tried something like this
Syntax: Select all
def _getSpecTarget(index):
handle = Player(index).get_property_int('CBasePlayer.m_hObserverTarget')
if handle == -1: return 0
return players.helpers.userid_from_inthandle(handle)
Would that work? Didn't tested it