OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: unkie on 20 Jan 2003, 06:48:44

Title: making units stay where you put them
Post by: unkie on 20 Jan 2003, 06:48:44
hi all, i was wondering how to make units of a group stay in the precise position where you put them....e.g like when you place them individually, ungrouped. When they're in a group, they start out in the right position, but then automatically move back into formation, even if you start them with "none" under the special box. Preferably without using disableai "move"
Title: Re:making units stay where you put them
Post by: _hammy_ on 20 Jan 2003, 08:35:07
put a 'hold' waypoint over them
Title: Re:making units stay where you put them
Post by: Wolfrug on 20 Jan 2003, 12:29:19
"_x stop TRUE" forEach units your_grp

your_grp being the name of your group. You get group names by putting your_group_name=group this into one of the group members' init field.

This will make everyone in the group stop and stay still until you do a:

"_x stop FALSE" forEach units your_grp

at which point they'll regroup again. And that bs in the manual about the Stop command being obsolete...disregard.  ::) At least 'til they find an "enableAI" command...

G'luck!

Wolfrug out.
Title: Re:making units stay where you put them
Post by: unkie on 21 Jan 2003, 08:10:49
thanks a lot, that works perfect! :)
Title: Re:making units stay where you put them
Post by: Tomb on 21 Jan 2003, 23:21:58

...At least 'til they find an "enableAI" command...


=========================================

lol