infiltrator_2k 29 Posted May 10, 2014 This is bloody annoying me. Why is it when script something as simple as " If !(alive sniper) then {hint "the sniper is dead"}; " it doesn't work. Yet if I remove the exclamation to check if the object is alive it works. I've tried running it from both the init field and a script but it doesn't work. Share this post Link to post Share on other sites
Tankbuster 1747 Posted May 10, 2014 if (!alive sniper) then {hint "sniper is dead"}; :) exclam is part of the condition and must be inside the brackerts Share this post Link to post Share on other sites
champ-1 40 Posted May 10, 2014 if (!alive sniper) then {hint "sniper is dead"};:) exclam is part of the condition and must be inside the brackerts I don't think it MUST be there. Share this post Link to post Share on other sites
SilentSpike 84 Posted May 10, 2014 Isn't it because (alive sniper) returns true, so you're basically saying {if !(true)}. Which is entirely different than saying {if (alive sniper != true)}, aka (!alive sniper) edit: Though I am totally forgetting that if he is dead then it would be {if !(false)}. However I'm not sure that that achieves anything either. Share this post Link to post Share on other sites
terox 316 Posted May 10, 2014 at the moment the line is run it will evaluate. maybe your not checking at the correct point in time. e.g your only running the condition query once. Try this instead waituntil {sleep 1; ! alive Sniper}; hint "Sniper is dead"; Try to work through this debugging tutorial. It will help you to solve these problems Zeu Debugging Tutorial Share this post Link to post Share on other sites
Wiki 1558 Posted May 10, 2014 if it's in a trigger, you put this in the condition line : "!alive sniper" and this in the action line : "hint: the sniper is dead" Share this post Link to post Share on other sites
Icaruk 14 Posted May 10, 2014 If you have just one condition: !alive sniper1 If you have more than one: !(alive sniper1) AND !(alive sniper2) Share this post Link to post Share on other sites