Jump to content

Recommended Posts

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

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

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

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

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

try this in your trigger condition:

 

(getDammage pilot1 < 0.5)

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×