_qor 11 Posted July 26, 2015 (edited) Hey, its just about this script that is not working: _trg1 = createTrigger ["EmptyDetector", getPos FC1veh]; _trg1 setTriggerArea [20, 20, 0, false]; _trg1 setTriggerActivation ["ANY", "PRESENT", true]; if (EAST countSide list _trg1 == 0) then {hint "free to delete"} else {hint "occupied"}; Of course the necessary conditions to fire the trigger are fulfilled. Got an idea what might be wrong? Edited July 26, 2015 by _qoR Share this post Link to post Share on other sites
f2k sel 164 Posted July 27, 2015 (edited) The problem is a trigger only fires once every half a second so when you create the trigger it needs half a second to activate, the if statement has already run by the time the trigger fires so list _trg1 when checked in the if statement hadn't been created so nothing happens. Place a sleep between the trigger and if statement sleep 1; I would however use this instead _trg1 setTriggerStatements ["this", "if (EAST countSide list thistrigger == 0) then {hint 'free to delete'} else {hint 'occupied'};", ""]; }; Edited July 27, 2015 by F2k Sel Share this post Link to post Share on other sites
_qor 11 Posted July 27, 2015 Great, it works this way. Thanks! Share this post Link to post Share on other sites