OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Lazy Lays on 23 Mar 2005, 20:47:11

Title: Help... Group wont move
Post by: Lazy Lays on 23 Mar 2005, 20:47:11
HELP with this annoying problem

Okay I have spawned a group of soldiers (eastgroup1) using the create command
then i placed a trigger:
activation by East
on activation: Eastgroup1 move getpos wp11
and I have placed an object called wp11

My plan was when the group of soldiers spawned in the trigger area they would move to the waypoint "wp11"  but the group of soldiers are duing nothing !

Please help

Sorry for bad english  
Title: Re:Help... Group wont move
Post by: StonedSoldier on 23 Mar 2005, 21:03:51
make sure you used the CreateUnit (http://www.ofpec.com/editors/comref.php?letter=C#createUnit) command and not the camcreate to create the men

and try

on activation: {_x domove getpos wp11} foreach units Eastgroup1
Title: Re:Help... Group wont move
Post by: Lazy Lays on 23 Mar 2005, 21:31:22
Thanks the move command is working !  ;D
Title: Re:Help... Group wont move
Post by: Lazy Lays on 23 Mar 2005, 21:44:13
Now how do I set Leader and formation ?
Title: Re:Help... Group wont move
Post by: nominesine on 24 Mar 2005, 00:00:04
Leader will be the unit created first, if all of them have the same rank. Formation is set using: groupOne setFormation "LINE". Possible formations are: "COLUMN", "STAG COLUMN", "WEDGE", "ECH LEFT", "ECH RIGHT", "VEE", "LINE".
Title: Re:Help... Group wont move
Post by: bluehand on 24 Mar 2005, 00:07:15
wow - coincidence!  :o I've just been struggling with the same problem.  Thanks for the tip.
Title: Re:Help... Group wont move
Post by: Lazy Lays on 24 Mar 2005, 17:32:11
If i want to change leader in eastgroup1
what would the command line look like ?