Page 1 of 1

gg_getlevel

PostPosted: Tue Feb 03, 2009 9:20 pm
by zeroibis
Is there any new command that replaces gg_getlevel? I can not figure this out :(

PostPosted: Wed Feb 04, 2009 10:54 am
by PitBull
At the moment, there is no way to get the level with EventScriptsShell. If you use EventScriptsPython, you do it like that:
import es
import gungamelib

def player_spawn(event_var):
    weapon = gungamelib.getPlayer(event_var['userid']).getWeapon()
    es.tell(event_var['userid'], "Your current weapon is: %s" % str(weapon))

Because I don't know if you want to script in Python or Shell, this is the only thing I can tell you.