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: Need some help with setPos  (Read 1196 times)

0 Members and 3 Guests are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Need some help with setPos
« on: 16 Oct 2002, 23:21:57 »
Hi, does anyone know how to make an object "teleport" to the position of another object? I know how to teleport something to a specified pos on the map, but not to another object. Plz help me yall... thx  :)
« Last Edit: 16 Oct 2002, 23:33:10 by Wildebeest »
Weeee...

Kaliyuga

  • Guest
Re:Need some help with setPos
« Reply #1 on: 17 Oct 2002, 00:52:06 »
just use this syntax...


this setpos [getpos objectname select 0, getpos objectname select 1,0]

objectname is the name you designate in the editor for that unit

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Need some help with setPos
« Reply #2 on: 17 Oct 2002, 00:52:46 »
Try:

object1 setpos (getpos object2)

;)

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Need some help with setPos
« Reply #3 on: 17 Oct 2002, 11:49:07 »
Wow it works! Thx for the spells guys :wave:
Weeee...