OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Dj Tano on 23 Mar 2007, 18:03:29

Title: Script for BLUFOR + Indipendent missing
Post 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....
Title: Re: Script for BLUFOR + Indipendent missing
Post by: johnnyboy on 23 Mar 2007, 18:14:00
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.
Title: Re: Script for BLUFOR + Indipendent missing
Post by: Dj Tano on 23 Mar 2007, 19:06:36
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?
Title: Re: Script for BLUFOR + Indipendent missing
Post by: Planck on 23 Mar 2007, 19:45:20
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