Home   Help Search Login Register  

Author Topic: respawning on top of buildings  (Read 1107 times)

0 Members and 2 Guests 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.