OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: JasonO on 27 Mar 2007, 23:52:37

Title: Getting a group to move - scripted
Post by: JasonO on 27 Mar 2007, 23:52:37
Hi

I have a group that I have hidden in the corner of an island. When needed I setpos them to behind a hill. From there I want them to move to a location that I've set using a game logic.

I've tried past ofp commands, one that worked before was this :


Quote
{_x domove getmarkerpos "attackpos"} foreach units group1

I have a marker named attackpos, however the units do not move. I have also tried deleting the marker and placing a game logic named attackpos instead:

Quote
{_x domove getpos attackpos} foreach units group1

However that doesnt work either.

Is there any other working way I can do it, other than using the waypoints manually?

Thanks in advance.  :)

Edit : Tried
Quote
leader group1 domove getmarkerpos "attackpos"

Again, they did not move.

EDIT : All the above does work. The problem I had was I was telling the units to move with no pause between the do move command and setpos command. A 3 second pause did the trick.

Locked  :D