OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Olphy on 21 May 2004, 13:09:28

Title: Triggers.
Post by: Olphy on 21 May 2004, 13:09:28
Hi.

I want to make a Trigger deactivate when a certain person leaves it.

For example.

I am making a boundary for my mission where after 10 seconds, if the person in the trigger is still in the trigger then I want to mission to fail. But if they leave I want to the end 1 trigger to deactivate. Thus not ending the mission.
Title: Re:Triggers.
Post by: h- on 21 May 2004, 19:37:04
I think in this case the timeout feature works (not 100% sure though):

Set the trigger to be activated by the side you want it to.
Set the trigger to repeatedly.
Timeout to 10/10/10.

Then in the condition field
unitNameYouWantToTriggerTheTrigger in thislist

in the on act. field
forceEnd

As said, not 100% sure so no guarantees... :P
Title: Re:Triggers.
Post by: General Barron on 21 May 2004, 20:13:11
Make a trigger, and then "group" the unit in question to the trigger.

Open up the trigger, and now you should have new 'activation' options:

vehicle - trigger activated by the person grouped to the trigger
whole group - activated only by EVERYONE in the person's group who is grouped to the trigger
any member of group - activated by ANYONE in the person's group

I think that's it. Set it to "vehicle", and then click "not present". Now select 'timeout' like HateR_Kint said, and set the time to 10/10/10. However, leave the 'condition' field as "this". "Timeout" means exactly what you want: once the trigger is activated, after 10 seconds, if the trigger is still activated, the trigger will fire. "Countdown" means that once the trigger is activated, after 10 seconds the trigger will fire, regardless of whether or not it is still activated.

Title: Re:Triggers.
Post by: Olphy on 21 May 2004, 20:50:24
Sounds good boys. Thanks.