OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: _Ross_ on 09 Jul 2003, 01:55:00

Title: make a trigger activate when units die
Post by: _Ross_ on 09 Jul 2003, 01:55:00
i need to figure out how to make a trigger activate when some units die.

thanks ;D
Title: Re:make a trigger activate when units die
Post by: Tomb on 09 Jul 2003, 02:10:13
in the "Condition field", write:

!alive bob


just delete the "this" and replace it w/ that command!  :-*

PS. (the "!" means "not")
Title: Re:make a trigger activate when units die
Post by: _Ross_ on 09 Jul 2003, 02:17:09
them what does ? mean?
Title: Re:make a trigger activate when units die
Post by: Tomb on 09 Jul 2003, 02:28:17
 

 :o ??? ;D


ok.  ::) listen up, matey!


>Create a trigger, and in the "Condition" field of the trigger window, write this:


NOT (Alive Bob)

==============

And be sure to delete the "this" (the default text in that field or box).  :o

Then just name your unit BOB in his "NAME" field, and thats it!  :-* when bob dies, the trigg will fire!


Title: Re:make a trigger activate when units die
Post by: borrowed soap on 09 Jul 2003, 03:06:53
if there r more than one units perhaps:

      myArray = [bob,mary,jeff,alice,maxwell]

then in the condition field of the trigger:

      count myArray != count myArray

*oops, just realized u would need a second trigger that continually counts your array and resizes its after a death.  i dont know what your array is, but if its a  <side> then the    count    command would maybe work here too, with the <side> of your array.   in the Activation field of the second trigger:
myArray = West countside thislist
maybe that helps?


 :D a very good question for my increasingly bad answer  lcd lol
Title: Re:make a trigger activate when units die
Post by: LCD on 09 Jul 2003, 03:11:05
@ soup

:wow:

dats amazing but :P

how can somin not equal itself ?

but u can do

"alive _X" count arrayname == 1

so it activates only wen deres 1 alive units from all units in da array

LCD OUT
Title: Re:make a trigger activate when units die
Post by: gadolinite on 09 Jul 2003, 19:18:44
 :-\ :-\Ross, I could have told you this :-\ :-\

gadolinite