Home   Help Search Login Register  

Author Topic: creating waypoints with code  (Read 441 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
creating waypoints with code
« on: 30 Aug 2003, 20:25:30 »
How do you create a waypoint for a unit to follow in a script?

Jujuman

  • Guest
Re:creating waypoints with code
« Reply #1 on: 30 Aug 2003, 23:30:41 »
UnitName DoMove GetPos GL1

Where GL1 is a gamelogic or other objects

or

UnitName DoMove [1000,1000,1000]

where [1000,1000,1000] is the map coordinates.

These will cause the unit to move to what ever position you specified.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:creating waypoints with code
« Reply #2 on: 31 Aug 2003, 03:16:43 »
Domove won't create a waypoint I'm afraid Juju ;)

Domove is the equivilent of the group leader telling a unit to move to a position. Once they get there, they will move straight back into formation.


I suggest simply using the move command. This will add a waypoint to the group.