Jump to content
Sign in to follow this  
SadBoy1981

Killed zombies check (fixed)

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...";
        };

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...