WarCraft: Source

 

IsDead

Page history last edited by freddukes@... 1 yr ago

IsDead


 

This command tests to see if the player is dead or not

 

The correct syntax is:

 

<variable> = wcs.Command(<userid>).IsDead()

 

  • Variable - A local python variable to store the value
  • Userid - The player that you want to check if dead or not

 


 

Example:

 

def player_say(ev):

    if ev["text"] == "Am i dead?":

        dead = wcs.Command(ev["userid"]).IsDead()

        if dead: es.tell(ev["userid"],'#green','You are dead')

        else: es.tell(ev["userid"],'#green','You are alive')

 

 

Comments (0)

You don't have permission to comment on this page.