OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: helpmeplease on 16 Jun 2003, 23:25:42

Title: respawning on top of buildings
Post by: helpmeplease 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
Title: Re:respawning on top of buildings
Post by: SteroidG 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.