Jump to content

Killed zombies check (fixed)


SadBoy1981

Recommended Posts

 

FIXED

Just try to add script where need to kill 10 zombies

Something like this;

 _zombies_killed = player getVariable ["zombieKills",0];

 ZombiesKilled = _zombies_killed;

and later check, is it killed 10 zombies;

  _zombies_killed_now = player getVariable ["zombieKills",0];

  _zombies_last_check = (ZombiesKilled) + 10;
  
    	if (_zombies_killed_now >= _zombies_last_check) then { 
         systemChat "blah blah blah...";
         } else { 
         systemChat "blah blah blah...";
        };

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...