OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gundernak on 19 May 2003, 15:18:12

Title: Trigger Disabled by Another Trigger?
Post by: gundernak on 19 May 2003, 15:18:12
how can I create a trigger which on activation makes a certain another trigger diasabled? I mean, when somebody activates Trigger A, Trigger B will not function.
thanks in advance
Andras
Title: Re:Trigger Disabled by Another Trigger?
Post by: Hawkins on 19 May 2003, 15:25:21
Here I'd use conditions. In the On Activation field of trigger A put: tigger1 = false. And in the condition of trigger B, put trigger1. So trigger A need the condition to work. And when it's false it wont work. Then in your missions init write: trigger1 = true

This should work. :)

Hawkins
Title: Re:Trigger Disabled by Another Trigger?
Post by: macguba on 19 May 2003, 19:45:22
Hawkins is right ... however, you still want trigger B to function as a normal trigger, so in trigger B you actually need:-

Condition:   this and trigger1

In other words trigger B will fire only when the Activation box is satisfied (east present or whatever, that's the "this" part of the condition line) and also trigger A has not been fired (the variable trigger1 is still true, having been set to true in your init.sqs file or the init field of a unit)