Home   Help Search Login Register  

Author Topic: Medevac and getdammage  (Read 1011 times)

0 Members and 1 Guest are viewing this topic.

SEAL84

  • Guest
Medevac and getdammage
« on: 08 Sep 2002, 23:36:20 »
How would you set up a trigger that checks every unit in a group for dammage, then orders the ones that exceed the limit to wait for a helicopter?

For example, if getdammage guy2 >= .5, I want him to be ordered to stop, take cover, then board a chopper (flown by a human player).

Is this more of a script or can it be done in a trigger's condition field?

Edit - all I need is the condition - I think I can figure out the movements and loading.
« Last Edit: 08 Sep 2002, 23:37:31 by SEAL84 »

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Medevac and getdammage
« Reply #1 on: 09 Sep 2002, 00:04:47 »
 Howsabout using a trigger - one that creates an array & which will use this new array  :o


Trigger (repeatedly), OnActiv. field :

MyArray = (GetDammage (count units (Group Bob)) >0.5);
"_x domove Getpos MyChopper" foreach units MyArray


...where BOB is some named d00d from the grp.

Not tested, so I dunno if this will work  :-\ :)
It's bloody hard if not impossible (?) to pick out unspecified
units and tell them to do something!
My best shot would be som'n like the stuff above....
something about counting unnamed d00ds from a group  ??? :P

very rough suggestion... dunno really, try it out & fiddle around with it   :-\ :)


« Last Edit: 09 Sep 2002, 00:15:40 by Tomb »