Apache185 0 Posted March 31, 2018 Hey there, I'm new to Arma3 editing an I'm trying to create a task to rescue a pilot on a crash side. The pilots (pilot1) health was at 3%. So I wanted to use a trigger with the condition "damage pilot1 < 0.97". Now, the pilot gets healed by a player and the task should be successfully concluded. But it didn't work. Can anyone help me here? Thx in advance Apache Share this post Link to post Share on other sites
beno_83au 1362 Posted March 31, 2018 What's in the On Activation? Share this post Link to post Share on other sites
Apache185 0 Posted March 31, 2018 Nothing yet. But a medic or player reduces a unit's damage by healing it, doesen't he? Share this post Link to post Share on other sites
beno_83au 1362 Posted March 31, 2018 Yeah it does. How are you using the trigger to complete the task then? Is it synced in the editor to a task module or something? I've always scripted tasks. Share this post Link to post Share on other sites
Apache185 0 Posted March 31, 2018 Yeah it's synced to a "Set Task State" which is also synced to the task itself. If I change the condition of the trigger for example to "!alive pilot1", shoot the pilot the task is successfully concluded. So the sync works. Is there a way to detect healing? Share this post Link to post Share on other sites
Apache185 0 Posted March 31, 2018 Okay the code works if I execute "pilot1 setDamage 0" the task is completed. But it doesn't if I heal the pilot... Share this post Link to post Share on other sites
XianGrim 73 Posted March 31, 2018 try this in your trigger condition: (getDammage pilot1 < 0.5) Share this post Link to post Share on other sites