t-bone 10 Posted March 3, 2014 I have a slight problem with the following code laptop2 addAction ["Hack Terminal 2", "Triggers\obj2.sqf", nil, 6, True, True, "", "(_target distance _this) < 4"]; How can I define the SQF script here so that I can actually use "terminate" command on that SQF script? I need it to interrupt hacking process itself, which is the obj2.sqf (so basically cancel / abort this script while it's executing) Share this post Link to post Share on other sites
mikie boy 18 Posted March 3, 2014 quick and dirty way... you could use a waituntil command in the script - inside... waituntil{!bombActive || bombActive}; if (bombActive) then { terminate _Script; }; addaction given a global variable that changes value - in turn waituntil is met. hopefully you get the picture. Share this post Link to post Share on other sites
t-bone 10 Posted March 4, 2014 (edited) quick and dirty way...you could use a waituntil command in the script - inside... waituntil{!bombActive || bombActive}; if (bombActive) then { terminate _Script; }; addaction given a global variable that changes value - in turn waituntil is met. hopefully you get the picture. I am sorry I don't catch it, shall I put both lines in the very start of the script? What will it do, will it exit the script when bombActive = true? I have a trigger marked the hacking area around laptop, once someone started to hack the laptop, but let's say on 50% decides to leave from this hacking area, hacking should be aborted (basically the script) Edited March 4, 2014 by T-Bone Share this post Link to post Share on other sites