Page 1 of 1

Player of edict_t instance?

Posted: Sun Dec 02, 2012 12:14 am
by Tuck
How would i retrieve playerinfo from edict_t instance

i know i can do:

Syntax: Select all

IPlayerInfo = Player.GetPlayerInfoManager().GetPlayerInfo(entity)


But i seems messy?

Posted: Sun Dec 02, 2012 1:36 am
by satoon101
You actually just help me realize there was a bug in my players.helpers module. Once I fix that, you should be able to use:

Syntax: Select all

from players.helpers import playerinfo_from_edict

player = playerinfo_from_edict(edict)
Not sure why you think that seems "messy", though...

Satoon