Results 1 to 2 of 2

Thread: Moveable respawn?

  1. #1
    Master Gunnery Sergeant dale0404's Avatar
    Join Date
    Jun 2 2008
    Location
    You don't want to know.
    Posts
    1,359

    Moveable respawn?

    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

    All I need is a mobile respawn point please!

    Cheers

    Dale

  2. #2
    Whilst I don't have Arma2 yet, this should still work (place it in an .sqf file and call that file from init.sqf):

    Code:
    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.
    Want a casual but realistic Arma experience? Join HMM Squad!
    OFPEC - The Editing Center
    JamesBurgess.co.uk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •