Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
//#Vehicle Ignite Tent - Based from rocket/community tent_pitch.sqf and tent_pack.sqf
private["_entity"];
_entity = _this select 3; //_entity = tent passed from another script
//Removes the action ( Stops using the same action 2x)
player removeAction s_player_igniteTent;
s_player_igniteTent = -1;
player playActionNow "Medic"; // TODO: Better Animations??
sleep 4; // Animation wait time
//Gets the Tent's ID/UID
_tentID = _entity getVariable["ObjectID","0"];
_tentUID = _entity getVariable["ObjectUID","0"];
dayzFire = [_entity,5,time,false,true];
publicVariable "dayzFire";
_id = dayzFire spawn BIS_Effects_Burn;
_entity setDamage 1;
//Creates a public var to delete the tent
dayzDeleteObj = [_tentID,_tentUID];
publicVariableServer "dayzDeleteObj";
//Allow player to set tent on fire
if(_isTent and _hasMatches and _canDo and !_isMan) then {
if (s_player_igniteTent < 0) then {
s_player_igniteTent = player addAction [format["Ignite Tent"], "\yourcustomscriptfolder\tent_ignite.sqf",cursorTarget, 1, true, true, "", ""];
};
} else {
player removeAction s_player_igniteTent;
s_player_igniteTent = -1;
};
player removeAction s_player_igniteTent;
s_player_igniteTent = -1;