OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SEAL84 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.
-
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 :-\ :)