OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Dj Tano on 23 Mar 2007, 18:03:29
-
Hey guys,
im making a mission where i have a coalition between blufor and indipendent, and im trying to make a script that if all blufor + indipendent are not in a certain area, then the mission ends.
My problem is that i manage to get it only to work with either blufor or indipendent, but not with both....
-
3 Triggers should work:
Trigger1: Activates when BLUFOR not present.
OnActivation: BluforNotPresent = TRUE <---- Set a global variable
Trigger2: Activates when Independent not present.
OnActivation: IndependentNotPresent = True <----- Set another global variable
Trigger3 Activation Condition: BluforNotPresent AND IndependentNotPresent <----- Test both global variables
OnActivation: Put your desired resulting action here.
-
how do i put "BluforNotPresent AND IndependentNotPresent" ?
cant i just make a trigger wich says: if trigger 1 and 2 are true, then im true too?
-
Well now, that is exactly what you have been given.
The first trigger sets a variable called "BluforNotPresent" to TRUE.
The second trigger sets a variable called "IndependentNotPresent" to TRUE.
The third trigger checks to see if both variables are TRUE or NOT, if both are TRUE then your chosen actions are taken.
Planck