OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
in the "Condition field", write:
!alive bob
just delete the "this" and replace it w/ that command! :-*
PS. (the "!" means "not")
-
them what does ? mean?
-
: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!
-
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
-
@ 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
-
:-\ :-\Ross, I could have told you this :-\ :-\
gadolinite