0 Members and 2 Guests are viewing this topic.
alpha1 AddEventHandler ["{hit",{_this exec "hit.sqs"}]
_hit = _this select 0_amount = _this select 2? getdammage _hit >= 0.95 : goto "dead"? !not (alive _hit) : goto "notdead"EXIT#notdead? _ammount >= 0.25 : goto "enough"EXIT#enough~1? not (alive _hit) : goto "dead"if (100 > random 100) then {goto "shout"}EXIT#shoutif (50 > random 100) then {_hit groupradio "hit1"} else {_hit groupradio "hit2"}~0.75if (30 > random 100) then {_hit say "eng32"} else {_hit say "eng34"}#deadEXIT
? !not (alive _hit) : goto "notdead"
?(condition=true): goto "next";whatever commands you want to happen "else" this condition is metexit#next;whatever commands you want to happen "if" this condition is metexit
? _ammount >= 0.25 : goto "enough"
if (100 > random 100) then {goto "shout"}
goto "shout"
EDIT2:AlsoCode:if (100 > random 100) then {goto "shout"} Is the same asCode:goto "shout"
? _amount >= 0.25 : goto "enough"EXIT#enough
if (_amount < 0.25) then {exit}
dont think thats the problem
_amount = _this select 2...? _ammount >= 0.25 : goto "enough"
w0w "if then else" works in scripts. you learn something new everyday.