gg_getlevel

Discussion about Custom Addons for GG5

gg_getlevel

Postby zeroibis » Tue Feb 03, 2009 9:20 pm

Is there any new command that replaces gg_getlevel? I can not figure this out :(
zeroibis

Private
Private
 
Posts: 6
Joined: Thu Nov 27, 2008 12:46 am

Postby PitBull » Wed Feb 04, 2009 10:54 am

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.
PitBull

GunGame5 Developer
GunGame5 Developer
User avatar
 
Posts: 66
Joined: Mon Nov 10, 2008 7:05 pm
Steam Friends Name: wergup_pitbull



Return to Custom Addons

Who is online

Users browsing this forum: No registered users and 1 guest

cron