Jump to content
Sign in to follow this  
avibird 1

Can you have a trigger with present and not present in the setTriggerActivation

Recommended Posts

Can you have a trigger with present and not present in the same see below for code line

Gunship1 = createTrigger ["EmptyDetector",getPos player];

Gunship1cas setTriggerArea [1500, 1500, 0, false];

Gunship1cas setTriggerActivation ["EAST", "NOT PRESENT", " PRESENT", false];

Gunship1cas setTriggerTimeout [300, 300, 300, false ];

Gunship1cas setTriggerStatements ["this", "HeliPilot1 sideChat ""Hawk One: our mission is done, returning back to base, OVER""; [] execVM ""aisupport\support-req\moveheli.sqf""" , ""

Share this post


Link to post
Share on other sites

No you cant do that, It only takes 3 inputs

trigger setTriggerActivation [by, type, repeating]

Share this post


Link to post
Share on other sites

Maybe you could use 3 triggers - one set to "present", the other "not present" and the third with "triggerActivated /first trigger/" and "triggerActivated /second trigger/". Use the third trigger to launch:

"this", "HeliPilot1 sideChat ""Hawk One: our mission is done, returning back to base, OVER""; [] execVM ""aisupport\support-req\moveheli.sqf"""

Share this post


Link to post
Share on other sites

You can do shit on deactivate to simulate what you're after. If I'm understanding the problem anyhow. Ie; blufor present (or a variable). When the condition is met it will trigger (onact runs). When the condition is no longer true (changes), the deact will run. ie; blufor leaves the trigger. Works with repeatable triggers too.

trigger (editor placed just as an example):

50x50
condition:
blufor present (repeatable if you like)
this

onact: hint "the condition is true";

deAct: hint "the condition is no longer true";

Edited by Iceman77

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
Sign in to follow this  

×