L'In20Cible wrote:Also, the following:Syntax: Select all
Delay(ar_delay.get_int(), respawn, player.userid)
def respawn(userid):
try:
player = Player.from_userid(userid)
except ValueError:
return
if player.dead: # is player dead?
player.spawn()
Could now simply be:Syntax: Select all
player.delay(ar_delay.get_int(), player.spawn)
Yes, but I want to make sure the player is dead, as iPlayer suggested.