Jump to content
Sign in to follow this  
lonesoldier

Trigger help

Recommended Posts

Ok fellas. In my mission you gotta defuse a bomb. and when you go near it, three actions appear on your action list: Cut Red Wire, Cut Blue Wire, Cut Green Wire. And you have to cut the right one or BOOM. So after you cut the right one, you can walk off and the actions still stay there. How can i make the triggers deactivate once ive defused the bomb? sort of like destroying the trigger.

Share this post


Link to post
Share on other sites

When you want to disable trigger add to its condition field : and !finished

Then add to script, or somewhere else, when action is finished line finished=true

But if you have actions added to action list then disable these actions by :

unit removeAction 0

unit removeAction 1

unit removeAction 2

Unit is name of unit with added actions.

Share this post


Link to post
Share on other sites

Bah.

I just figured out this problem and when I get back someone has already posted mad.gif  biggrin.gif

just adding

if u use removeaction 0 it will remove the first action added to the unit.

if U use removeaction 1 it will remove the 2nd action added to the unit and so on

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  

×