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: respawning on top of buildings  (Read 1742 times)

0 Members and 1 Guest are viewing this topic.

helpmeplease

  • Guest
respawning on top of buildings
« on: 16 Jun 2003, 23:25:42 »
hello everyone im having a problem trying to get units and vehicles to respawn on top of a building, instead of on the ground, can anybody plz help me thanx

SteroidG

  • Guest
Re:respawning on top of buildings
« Reply #1 on: 17 Jun 2003, 01:49:26 »
Are you talking about playable units or AI units and empty vehicles?

If it's playable units, then putting setPos in their init field might do the trick.

Something like:

this setPos [getPos this select 0, getPos this select 1, + 20];

Replace the last element in the array to what ever height you want them to respawn to. And if there's a building underneath, they'll land on it.