Question Testing for if a player has the Zombie Blood power-up

Tyne

Veteran
Messages
8
Reaction score
1
Points
783
Would there be a way to detect if a player has Zombie Blood activated? If so, I'd like to know. Thanks in advance.
 

CF4_99

Veteran
Messages
145
Reaction score
56
Points
888
This Var is used when zombie blood is activated for a player

Code:
e_player.zombie_vars[ "zombie_powerup_zombie_blood_on" ] = 1;

To see if it is activated on a player just do it like this

Code:
if(isDefined(player.zombie_vars["zombie_powerup_zombie_blood_on"]))
    //Whatever action you want for players with zombie blood
 

Tyne

Veteran
Messages
8
Reaction score
1
Points
783
This Var is used when zombie blood is activated for a player

Code:
e_player.zombie_vars[ "zombie_powerup_zombie_blood_on" ] = 1;

To see if it is activated on a player just do it like this

Code:
if(isDefined(player.zombie_vars["zombie_powerup_zombie_blood_on"]))
    //Whatever action you want for players with zombie blood
Thanks a lot!
 
Top