Home   Help Search Login Register  

Author Topic: how to name a gorup of units  (Read 843 times)

0 Members and 1 Guest are viewing this topic.

ThEoNaNdOnLy

  • Guest
how to name a gorup of units
« on: 03 Dec 2004, 12:56:07 »


hello, one of my objectives in a mission is to kill a certain group of infantry, when they are all dead i want to have the objective marked as done

basicaly what do i put into the condition field of my trigger that says when these 12 men are dead, the trigger is flicked. and how do i name the group of people? what do i put inot the officers init field that will ane the units, because i think that if i have a name for a group of people, all i shud put into the condition field then is "?not alive group"

please help

Guy

Offline Marvin

  • Members
  • *
  • One day they will come
Re:how to name a gorup of units
« Reply #1 on: 03 Dec 2004, 13:13:01 »
I thinks you can name the group
_Mygroup = group this  - goes in the leader init field

and to know when all dead

in the triger condition field
count units _mygroup < 1
« Last Edit: 03 Dec 2004, 13:13:31 by Marvin »
Is there any games than Flashpoint?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:how to name a gorup of units
« Reply #2 on: 03 Dec 2004, 14:17:36 »
Marvin is right, but you sometimes get a delay before the game notices all the units are dead.   Better is

"alive _x" count units mygroup == 0

Also, the name of the group should NOT start with an underscore.    This would make it a local variable, not a global one.  
Plenty of reviewed ArmA missions for you to play

ThEoNaNdOnLy

  • Guest
Re:how to name a gorup of units
« Reply #3 on: 03 Dec 2004, 20:38:13 »

ok thank you very much for your time, i will take these into account when making my next misson.


ok, now im at the end of this mission i dont quite know how to...end it.

lol

i have put a trigger, with the type as END #1 , now i dont know what to put into the conditions field that will, check that objectives 1 2 4 and 5 are completed (objective 3 fails because half way through the mission you have to divert your attention to other mattes.

what do i put in the conditions field of a trigger to basically say, when objectives 1, 2,4  and 5 are "done" end the mission?


Guy

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:how to name a gorup of units
« Reply #4 on: 03 Dec 2004, 23:03:27 »
when you trigger the objective "done", make a global variable that corresponds to it:
"1" objstatus "done"; Obj1 = true
repeat for each

and on the end trigger put:
obj1 && obj2 & obj 4 ...
in the condition line

ThEoNaNdOnLy

  • Guest
Re:how to name a gorup of units
« Reply #5 on: 03 Dec 2004, 23:27:45 »
ok thanx il hop to it now

ThEoNaNdOnLy

  • Guest
Re:how to name a gorup of units
« Reply #6 on: 03 Dec 2004, 23:38:48 »
ok what exactly do i put into the conditions field? it dosnt seem to work



ThEoNaNdOnLy

  • Guest
Re:how to name a gorup of units
« Reply #7 on: 03 Dec 2004, 23:42:20 »
ok now it works, thak you very much. hmmm what do i need help with now..apart from my brain lol (joke)

hmmm, cant think of anything...well thank you all for the help

it is much appreciated


Guy