Home   Help Search Login Register  

Author Topic: Getting a group to move - scripted  (Read 1122 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Getting a group to move - scripted
« 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
« Last Edit: 28 Mar 2007, 00:15:29 by JasonO »