Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SA_Take_Tow_Ropes_Action = {
- private ["_vehicle","_canTakeTowRopes"];
- _vehicle = cursorTarget;
- if([_vehicle] call SA_Can_Take_Tow_Ropes) then {
- _canTakeTowRopes = true;
- if!(missionNamespace getVariable ["SA_TOW_LOCKED_VEHICLES_ENABLED",false]) then {
- if( locked _vehicle > 1 ) then {
- ["Cannot take tow ropes from locked vehicle",false] call SA_Hint;
- _canTakeTowRopes = false;
- };
- };
- if!(missionNamespace getVariable ["SA_TOW_IN_EXILE_SAFEZONE_ENABLED",false]) then {
- if(!isNil "ExilePlayerInSafezone") then {
- if( ExilePlayerInSafezone ) then {
- ["Cannot take tow ropes in safe zone",false] call SA_Hint;
- _canTakeTowRopes = false;
- };
- };
- };
- ////////////////////// ADD THIS ////////////////////////////////////
- // Custom Exile Rope Check
- if (!("Exile_Item_Rope" in (vestItems player + uniformItems player + backpackItems player + assignedItems player))) then {
- ["You don't have any rope.",false] call SA_Hint;
- _canTakeTowRopes = false;
- };
- ///////////////////////////////////////////////////////////////////
- if(_canTakeTowRopes) then {
- [_vehicle,player] call SA_Take_Tow_Ropes;
- };
- };
- };
Add Comment
Please, Sign In to add comment