Jump to content
PapaStalin1

Editor help: Anyway to have a squadleader place an outpost like HLL for a coop mission?

Recommended Posts

Making a mission for a few of the lads. Anyone have a script or a way to have a squadleader place an outpost for other players to spawn at like in Hell Let Loose or Squad? currently we are using triggers with setMarkerPos, but we'd love to use an actual point that can be added and removed. Hope this isn't too complex, cheers in advance

Share this post


Link to post
Share on other sites

Sure. There's several missions on the workshop that have this feature in various forms. I am copy+pasting one that user Leopard20 made. Create an initplayerlocal.sqf (see https://community.bistudio.com/wiki/Event_Scripts for details) in your mission folder and paste this:


player addEventHandler ["Put", {
    params ["_unit", "_cont", "_item"];
    
    if (getNumber (configFile >> "CfgVehicles" >> _item >> "isBackpack") == 1) then {
        if (_cont getVariable ["hasRespawnAction", false]) exitWith {};
        _cont addAction ["Deploy Respawn",{[west, _this#0, "Camp"] call BIS_fnc_addRespawnPosition;},nil,1.5,true,false,"","true",3,false,""];
        _cont setVariable ["hasRespawnAction", true, true];
    };
}];

 

  • Like 1

Share this post


Link to post
Share on other sites

This particular script notices if the player has dropped their backpack, then gives them the option of creating a spawn point.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×