Jump to content
Sign in to follow this  
UKMERC

Need help with a trigger

Recommended Posts

Iv searched low and wide and cant find the answer.

I have a gather intel action on a crashed huey to remove the blackbox, what i need is that once the intel has been gathered by the player and the hint has shown i need the trigger to active a create/setmarkerpos.

iv already used the create/setmarkerpos on act line before so all i need is the on act for the gather intel to activate the trigger

Here is the remove blackbox action

this addAction ["Remove Blacbox", "Intel1.sqs", 0, 0, true, true, "", "(!(captive _target) && (alive _target) && (alive _this))"];

pls help me.

Share this post


Link to post
Share on other sites

Trigger condition: showmarker

In Intel1.sqs: showmarker = true

Or, you can just place the create/setmarkerpos command in the intel.sqs

Share this post


Link to post
Share on other sites

Worked a treat thankyou very much

Edited by UKMERC

Share this post


Link to post
Share on other sites

Also is there any way for me to get a trigger to trigger when a helo lands and shuts its engines down?

Share this post


Link to post
Share on other sites

Untested but assuming the helicopter's name was helo (use whatever name you want), try this in the condition field:

((helo in thisList) && (!isEngineOn helo) && (getposATL helo select 2 < 2))

Check isEngineOn and getPosATL in the Biki for details. This would ensure that the engine was off and it was low enough to the ground to be considered landed. You need both to make sure it doesn't trigger while in the air and the engine shuts down (due to damage).

Good luck!

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  

×