PDA

View Full Version : Moveable respawn?



dale0404
Jun 12 2009, 19:08
Like the MHQ in the Domination maps I am trying to create a vehicle that you can spawn at wherever it is on the map.

Is there an easy way to do this like give the vehicle a marker name like respawn_west or do I need to do something totally different?

I am not after putting an ammo crate into the vehicle or anything like that. In fact if the vehicle gets taken then out I dont want it to even respawn, they will have to walk :D

All I need is a mobile respawn point please!

Cheers

Dale

JamesF1
Jun 12 2009, 23:01
Whilst I don't have Arma2 yet, this should still work (place it in an .sqf file and call that file from init.sqf):



if(!isServer) exitWith {};

while {alive myVehicle} do {
"respawn_west" setMarkerPos getPos myVehicle;
};

deleteMarker "respawn_west";


Obviously, replace "myVehicle" with the name of the vehicle you want them to spawn at, and ensure you have placed a marker called "respawn_west" in the editor.

I don't know how they will spawn in Arma2, but they guys should spawn next to the vehicle. If they don't, you'll have to add some metric to ensure they spawn next to it, instead.