Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Giving waypoints to script created units?  (Read 623 times)

0 Members and 2 Guests are viewing this topic.

timmylondon

  • Guest
Giving waypoints to script created units?
« on: 17 Jan 2003, 13:28:26 »
Hello,

How can I give waypoints for units created using script (createunit and createvehicle)?

I used game logics as their positions.

Thanks,
Timmy

Offline Ottie

  • Members
  • *
  • And you think this is personal
Re:Giving waypoints to script created units?
« Reply #1 on: 17 Jan 2003, 16:12:56 »
create a unit in the mission editor, and give this unit the waypoints you want the units created with the scirpt must follow and in the initfield of the unit write

GoupName (you use to create the new units) = group this; deleteVehicle this;

When you now create the units the units will follow the waypoints.

Ottie
If you can't beat them, buy them

cpt.Hawkeyez

  • Guest
Re:Giving waypoints to script created units?
« Reply #2 on: 25 Jan 2003, 04:42:23 »
or you could do

domove player [x,y,z]