Home   Help Search Login Register  

Author Topic: Script for BLUFOR + Indipendent missing  (Read 1369 times)

0 Members and 1 Guest are viewing this topic.

Offline Dj Tano

  • Members
  • *
Script for BLUFOR + Indipendent missing
« 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....

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Script for BLUFOR + Indipendent missing
« Reply #1 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.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Dj Tano

  • Members
  • *
Re: Script for BLUFOR + Indipendent missing
« Reply #2 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?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Script for BLUFOR + Indipendent missing
« Reply #3 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
I know a little about a lot, and a lot about a little.