OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: whiplash2000a on 27 Aug 2002, 09:55:23
-
Is there a way of getting the position of a group of soldiers, without relying on just one soldier from the group?
Let's say the one soldier you named and used for the Getpos command got killed half way to the place you needed the detection to happen, now what? You've got the wrong coordinates.
I guess I'm really asking for a way to detect the majority of the group of soldiers.
-
You could get the position of the group's leader:
getpos (leader group)
If the leader dies, the next ranking unit in the group becomes the leader...
As the group follow's the leader, that way you should have the general position of the majority of the group... ;)
-
I didn't know there was such a command. Thanks.