Jump to content
ScaRR

Exploding Heli Protection Script

Recommended Posts

thanks for this ...

 

i took a look at the code and decided there was no reason to disable damage every time a player enters driver seat (as that can obviusly be abused if players found out) considdering there could be another player in the vehicle already, also no reason to set damage to false on the client transfering the vehicle to the next local player.

 

so heres my edit ... havent heard any complaints as of yet:

/*
	File: OX3_GetInProtect.sqf
	Author: ScaRR
	minor edits by Halv
*/
if(isServer) exitWith {};

fn_handleGetIn = {
	private ["_vehicle","_seat"];
	_vehicle = _this select 0;
	_seat = _this select 1;
	if(count (crew _vehicle) < 1)then{
		_vehicle setVariable ["GotIn",true];
		_vehicle allowDamage false;
	};
};

fn_handleLocal = {
	private "_vehicle";
	_vehicle = _this select 0;
	if(_this select 1)then{
		_vehicle setVariable ["LocalChanged",true];
		_vehicle allowDamage false;
	};
};

while {true} do {
	{
		if (!(_x getVariable ["added_EHProtect",false])) then {
			_x addEventHandler ["GetIn", {_this call fn_handleGetIn;}];
			_x addEventHandler ["Local", {_this call fn_handleLocal;}];
			_x setVariable ["added_EHProtect",true];
		 };
		if( (_x getVariable["GotIn",false])) then{
		 	sleep 3;
			_x allowDamage true;
			_x setVariable ["GotIn",false];
		};
		if( (_x getVariable["LocalChanged",false])) then{
		 	sleep 3;
			_x allowDamage true;
			_x setVariable ["LocalChanged",false];
		};
	}forEach vehicles;
	uiSleep 5;
};  

possibly these sleeps for 3seconds could be reduced aswell, i havent tried it yet, but im sure 3 seconds is possibly too much.

Share this post


Link to post
Share on other sites

I have been trying to add this to my server. Every time I add it i get errors, I added this

*/


if(isServer) exitWith {};

fn_handleGetIn = {
private ["_vehicle","_seat"];
_vehicle = _this select 0;
_seat = _this select 1;

if(_seat == "driver")then{
_vehicle setVariable ["GotIn",true];
_vehicle allowDamage false;
diag_log "[OX3] - Vehicle getin handled";
};
};

fn_handleLocal = {
private ["_vehicle","_local"];

_vehicle = _this select 0;
_local = _this select 1;
_vehicle setVariable ["LocalChanged",true];
_vehicle allowDamage false;
diag_log "[OX3] - Vehicle local handled";

};

diag_log "[OX3] - Vehicle get in pilot protection";
while {true} do
{

{
if (!(_x getVariable ["added_EHProtect",false])) then {
_x addEventHandler ["GetIn", {_this call fn_handleGetIn;}];
_x addEventHandler ["Local", {_this call fn_handleLocal;}];
_x setVariable ["added_EHProtect",true];
};

if( (_x getVariable["GotIn",false])) then{
sleep 3;
_x allowDamage true;
_x setVariable ["GotIn",false];
};

if( (_x getVariable["LocalChanged",false])) then{
sleep 3;
_x allowDamage true;
_x setVariable ["LocalChanged",false];
};
}forEach vehicles;

uiSleep 5;

};

to the sqf

This is what my rpt says after it starts.

21:15:20 Error in expression */\scripts\ox3_getinprotect.sqf"


if(isServer) exitWith {};

fn_handle>
21:15:20 Error position: <*/

if(isServer) exitWith {};

fn_handle>
21:15:20 Error Invalid number in expression \scripts\ox3_getinprotect.sqf"

IDK is that */ ment to be there? 

Share this post


Link to post
Share on other sites

I have been trying to add this to my server. Every time I add it i get errors, I added this

*/

if(isServer) exitWith {};

fn_handleGetIn = {

private ["_vehicle","_seat"];

_vehicle = _this select 0;

_seat = _this select 1;

if(_seat == "driver")then{

_vehicle setVariable ["GotIn",true];

_vehicle allowDamage false;

diag_log "[OX3] - Vehicle getin handled";

};

};

fn_handleLocal = {

private ["_vehicle","_local"];

_vehicle = _this select 0;

_local = _this select 1;

_vehicle setVariable ["LocalChanged",true];

_vehicle allowDamage false;

diag_log "[OX3] - Vehicle local handled";

};

diag_log "[OX3] - Vehicle get in pilot protection";

while {true} do

{

{

if (!(_x getVariable ["added_EHProtect",false])) then {

_x addEventHandler ["GetIn", {_this call fn_handleGetIn;}];

_x addEventHandler ["Local", {_this call fn_handleLocal;}];

_x setVariable ["added_EHProtect",true];

};

if( (_x getVariable["GotIn",false])) then{

sleep 3;

_x allowDamage true;

_x setVariable ["GotIn",false];

};

if( (_x getVariable["LocalChanged",false])) then{

sleep 3;

_x allowDamage true;

_x setVariable ["LocalChanged",false];

};

}forEach vehicles;

uiSleep 5;

};

to the sqf

This is what my rpt says after it starts.

21:15:20 Error in expression */\scripts\ox3_getinprotect.sqf"

if(isServer) exitWith {};

fn_handle>

21:15:20 Error position: <*/

if(isServer) exitWith {};

fn_handle>

21:15:20 Error Invalid number in expression \scripts\ox3_getinprotect.sqf"

IDK is that */ ment to be there? 

 

 

Hey, just paste the entire script, the */ is the closing tag for the comments and boilerplate at the top of the file. If you are using my original script , replace */ with 

 

/*
	File: OX3_GetInProtect.sqf
	Author: ScaRR
	Date: 2 June 2015
	Description: This script protects helis when a player gets close to a vehicles and the locality changes, at times this can cause a vehicle to explode or when the player 
	gets into the pilot seat.
	This script could possibly be optimised a bit more and needs further testing. 
	
	BE filters:
		
		setvariable.txt
			append !="added_EHProtect" !="GotIn" !="LocalChanged" 
		
		scripts.txt (note, your line numbers might differ
			line 22: append !="_x allowDamage true;" !="_vehicle allowDamage false"
			line 48: append !="_x setDamage 0;"
			if you get kicked for addEventHandler then add
			line 53: !="_x addEventHandler [\"GetIn\", {_this call fn_handleGetIn;}];" !="_x addEventHandler [\"Local\", {_this call fn_handleLocal;}];"
			
	Installation:
		Copy into your scripts folder, add this line to your init.sqf, execVM \"scripts\OX3_GetInProtect.sqf";
	
		
	PLEASE KEEP CREDITS - THEY ARE DUE TO THOSE WHO PUT IN THE EFFORT!	
*/  

Share this post


Link to post
Share on other sites

Seems i don't get it running because i never have logfiles which say that the script is active. Also helis still explode. May i ask what i am missing here? Here is my init.sqf:

// Logo
[] execVM "images\logo.sqf";
/////////////////////////////////////////////////////////////// Earplugs for vehicles
call compile preProcessFileLineNumbers "cmEarplugs\config.sqf";

/////////////////////////////////////////////////////////////// Custom Spawn selection
[] execVM "addons\halv_spawn\init.sqf";/////////////////////////////////////////////////////////////// Control the epoch ai limit per player

// 1. Cultist, 2. Shark, 3. Sapper regular, 4. Super Sapper, 5. Drone, 6. Invisible Phantom, 7. Transport Heli
EPOCH_spawnLimits = [2, 1, 4, 0, 0, 0, 1];// Mission script

if(hasInterface) then {

execVM "semClient.sqf";
[] execVM "addons\halo\halo_out.sqf";
[] execVM "addons\service_point\service_point.sqf";

};

[] execVM "trader\init.sqf";
[] execVM "trader\HALV_takegive_crypto_init.sqf";
[] execVM "trader\resetvehicleammo.sqf";
[] execVM "effect.sqf";
[] execVM "addons\messages\init.sqf";
[] execVM "addons\OX3_GetInProtect.sqf";

Thanks

Share this post


Link to post
Share on other sites

Seems i don't get it running because i never have logfiles which say that the script is active. Also helis still explode. May i ask what i am missing here? Here is my init.sqf:

// Logo
[] execVM "images\logo.sqf";
/////////////////////////////////////////////////////////////// Earplugs for vehicles
call compile preProcessFileLineNumbers "cmEarplugs\config.sqf";

/////////////////////////////////////////////////////////////// Custom Spawn selection
[] execVM "addons\halv_spawn\init.sqf";/////////////////////////////////////////////////////////////// Control the epoch ai limit per player

// 1. Cultist, 2. Shark, 3. Sapper regular, 4. Super Sapper, 5. Drone, 6. Invisible Phantom, 7. Transport Heli
EPOCH_spawnLimits = [2, 1, 4, 0, 0, 0, 1];// Mission script

if(hasInterface) then {

execVM "semClient.sqf";
[] execVM "addons\halo\halo_out.sqf";
[] execVM "addons\service_point\service_point.sqf";

};

[] execVM "trader\init.sqf";
[] execVM "trader\HALV_takegive_crypto_init.sqf";
[] execVM "trader\resetvehicleammo.sqf";
[] execVM "effect.sqf";
[] execVM "addons\messages\init.sqf";
[] execVM "addons\OX3_GetInProtect.sqf";

Thanks

 

Hey, are you checking your client side rpt?

 

If so, try adding diag_log before and after this

 

if(isServer) exitWith {};

 

 

 

e.g. 

 

diag_log "[OX3] - Vehicle get in pilot protection - Pre isSever check";

if(isServer) exitWith {};

diag_log "[OX3] - Vehicle get in pilot protection - Post isSever check";

 

 

 

You should at least see the first one. If you don't see the second one try changing isServer to isDedicated.

Share this post


Link to post
Share on other sites

Hi Scarr,

 

ist the logging in your script client side? This one i never checked. :D :D  I only checked it on my server rpt files.This code goes directly into your script file?

 

Thanks man

Share this post


Link to post
Share on other sites

Hi Scarr,

 

ist the logging in your script client side? This one i never checked. :D :D  I only checked it on my server rpt files.This code goes directly into your script file?

 

Thanks man

 

Yes the script runs client side. Your init.sqf looks fine. 

The code change I suggested is in the OX3_GetInProtect.sqf script. 

 

The line below, if(isServer) exitWith {};    , means that if the server is running the script it should exit so this means it will only run on clients. isDedicated is a similar check, it just checks if it is a dedicated server but isServer should work. 

I suggest first checking the client rpt for errors before making the changes.

Share this post


Link to post
Share on other sites

Thank you. Will check that when i am at home. The script was running from the beginning but the player still complain about exploding helis. So i set your line more to the top of init.sqf maybe this helps.

Will check that.

 

Thanks again

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By thegdog
      home hosting a test server, how would i go about changing the spawning of the heli crash sites.  i been on a server that had heli sites everywhere.  also how would i go about adding events like bandit captures, medical supply areas, ect.  
    • By JakeQue
      Hi guys, need a few updates for the vehicle garage if possible. I need to limit the amount of vehicles per player... 

      Also need to stop overpowered vehicles being stored in the garage. I have updated my player_storeVehicle.sqf with the following code but it's not working, it still stores them : 

       
      // Developed by [GZA] David for German Zombie Apocalypse Servers (https://zombieapo.eu/) private["_unit","_obj","_wogear","_charID","_objectID","_keyavailable","_keyColor","_added","_objectUID","_key","_class","_noStore"]; if(lbCurSel 3802 == -1) exitWith {hint "No Vehicle selected"}; _unit = player; _obj = StoreVehicleList select (lbCurSel 3802); StoreVehicleList = nil; _wogear = _this select 0; closeDialog 0; _noStore = _obj in ["AH64D"]; if (_noStore) exitWith { cutText ["Woah, that vehicle is too overpowered. You can't store that here!", "PLAIN DOWN"]; }; _charID = _obj getVariable ["CharacterID","0"]; _objectID = _obj getVariable ["ObjectID","0"]; _objectUID = _obj getVariable ["ObjectUID","0"]; if (_objectID == "1") exitWith {cutText ["Can not store mission vehicle.", "PLAIN DOWN"];}; // Check for mission vehicle WAI Script _keyavailable = false; _keyColor = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]; if(_charID != "0") then { { if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _keyColor) then { if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == _charID) then { _key = _x; _keyavailable = true; }; }; } count (items _unit); } else {_keyavailable = true;}; if (!_keyavailable) exitWith {cutText ["You need the key of the vehicle.", "PLAIN DOWN"];}; _added = false; if (!_wogear) then { _added = [player, Pricegear] call SC_fnc_removeCoins; } else {_added = true;}; Pricegear = nil; if(!_added) exitWith {cutText ["You don't have enough money.", "PLAIN DOWN"];}; if(_charID != "0") then { [_unit,_key] call BIS_fnc_invRemove; cutText ["Key removed!", "PLAIN DOWN"]; }; _obj setvehiclelock "locked"; PVDZE_storeVehicle = [_obj, _unit, _wogear]; publicVariableServer "PVDZE_storeVehicle"; waitUntil {!isNil "PVDZE_storeVehicleResult"}; PVDZ_obj_Destroy = [_objectID,_objectUID,_unit]; publicVariableServer "PVDZ_obj_Destroy"; deleteVehicle _obj; PVDZE_storeVehicleResult = nil; sleep 2; cutText ["Stored Vehicle in Garage.", "PLAIN DOWN"]; Also would be nice to maybe implement an sql event which removes them out the garage after 14 days if anyone could write that? 

      Merci ! xD
    • By Birgitte
      Howdy folks, I asked in another thread i hijacked but wanted to elaborate a bit so here i am. The Epoch 1.0.6 server is going well. it's a little tough finding information regarding changes so i hope i am not repeating too much. You have all been an excellent help so far.
      I am looking for a way to configure what gets lifted and what does the lifting with the current heli lift system and remove the requirement for a person on the ground or a way to use the previous system which is compatible with 1.0.6. R3F something and something, lol.
      I also seem to remember some script which allows bicycles to be put away in your pocket or something. Any ideas?
      Thanks again and I hope all is well with you.
    • By Donnovan
      ANDRE AERIAL PATROL:
      If it worked and you enjoy it, i ask for a donation. Thankyou!
       $USD
       $EURO
       
      OBS: The money rewards will only work if you have the coins script.
      INSTALLATION:
      1 - Put the script bellow on server side.
      2 - Exec it with execVM.
      if (isServer) then { _gridN = 15; _mapSize = 15360; //CHERNARUS donn_hwps = []; for "_i" from 1 to (_gridN - 1) do { _wpx = (_i/_gridN)*_mapSize; for "_y" from 1 to (_gridN - 1) do { _wpy = (_y/_gridN)*_mapSize; if !(surfaceIsWater [_wpx,_wpy]) then {donn_hwps = donn_hwps + [[_wpx,_wpy,0]];}; }; }; donn_heliConvy = [ /*0*/["UH1H_DZ",0,["100Rnd_762x51_M240","100Rnd_762x51_M240"],3], /*1*/["UH1H_DZ",4,[],4], /*2*/["Mi17_TK_EP1",5,["100Rnd_762x51_M240","100Rnd_762x51_M240"],5], /*3*/["CH_47F_EP1_DZE",6,["100Rnd_762x51_M240","4000Rnd_762x51_M134","4000Rnd_762x51_M134"],6], /*4*/["AH6J_EP1_DZ",1,[],2] //ARMED (PILOT) ]; //HELI MAIN CONFIG BEGIN _heliFormation =[[0,0,2],[2,2],[4,4,4,4,4],[3],[3],[1,1]]; _heliAltitude =[[60,60,115],[100,100],[50,50,50,50,50],[100],[100],[115,115]]; _heliSpeed =["NORMAL","NORMAL","FULL","LIMITED","NORMAL","FULL"]; //HELI MAIN CONFIG END _spawn = [100,100,400]; donn_heli_HD = { _heliHurt = _this select 0; _damage = _this select 2; if !(canMove _heliHurt) then { if (_heliHurt getVariable "dncmv") then { _heliHurt setVariable ["dncmv",false,false]; { if (random 100 > 50) then {_x action ["Eject",_heliHurt];} else {_x setPos getPos _heliHurt;}; } forEach crew _heliHurt; }; }; _damage }; donn_heli_unit_HD = { _hurtedOne = _this select 0; _damage = _this select 2; _ofender = _this select 3; _grp = group _hurtedOne; if (combatMode _grp != "RED" && isPlayer _ofender) then { {_x enableAi "TARGET";} forEach units _grp; {_x enableAi "AUTOTARGET";} forEach units _grp; _grp reveal [_ofender,1.5]; _grp setCombatMode "RED";_grp setBehaviour "COMBAT"; }; _damage }; donn_heli_unitKill = { _unit = _this select 0; _role = assignedVehicleRole _unit; if ((assignedVehicleRole _unit) select 0 == "Driver") then { _vehEject = assignedVehicle _unit; { if (random 100 > 40) then {_x action ["Eject",_vehEject];} else {_x setPos getPos _vehEject}; } forEach crew _vehEject; }; if ({alive _x} count units group _unit == 0) then {donn_heliGrps = donn_heliGrps - [group _unit];}; _unit setVariable ["cashMoney",12500 + (round random 5) * 1000,true]; }; donn_makeAeroRoute = { _origin = _this select 0; _heli_group = _this select 1; _speed = _this select 2; _posBefore = _origin; _posNow = _origin; _wp = _heli_group addWaypoint [_posNow,0,0]; _wp setWaypointCompletionRadius 65; _wp setWaypointType "MOVE"; _wp setWaypointSpeed _speed; _posNext = [0,0,0]; for "_c" from 1 to 5 do { _distToBefore = 0; _distToNext = 0; _found = false; for "_x" from 1 to 200 do { _posNext = donn_hwps call BIS_fnc_selectRandom; _distToNext = _posNow distance _posNext; _distToBefore = _posNext distance _posBefore; if (_distToNext > 3000 && _distToBefore > 4000) exitWith {}; uiSleep 0.001; }; if (!_found) then {_posNext = donn_hwps call BIS_fnc_selectRandom;}; _wp = _heli_group addWaypoint [_posNext,0,_c]; _wp setWaypointCompletionRadius 65; _wp setWaypointType "MOVE"; _wp setWaypointSpeed _speed; _posNow = _posNext; }; _wp = _heli_group addWaypoint [_origin,0,6]; _wp setWaypointCompletionRadius 65; _wp setWaypointType "CYCLE"; _wp setWaypointSpeed _speed; }; donn_heliGrps = []; [] spawn { while {{!isNull _x} count donn_heliGrps > 0} do { { _grp = _x; _forceIn = true; { if (_grp knowsAbout _x >= 1.5) then {_grp reveal [_x,4];_forceIn = false;}; } forEach playableUnits; if (_forceIn) then { if (combatMode _grp != "BLUE") then { {_x disableAi "TARGET";uiSleep 0.001;} forEach units _grp; {_x disableAi "AUTOTARGET";uiSleep 0.001;} forEach units _grp; _grp setCombatMode "BLUE";_grp setBehaviour "CARELESS"; }; { if (vehicle _x == _x) then {[_x] orderGetIn true;uiSleep 0.001;}; } forEach units _grp; }; } forEach donn_heliGrps; uiSleep 10; }; diag_log "[COMBOIOS AEREOS] FIM."; }; for "_cs" from 1 to (count _heliFormation) do { diag_log ("[HELI CONVOY] Initialized Spawn! " + str _cs); _heli_group = createGroup EAST; donn_heliGrps = donn_heliGrps + [_heli_group]; _convoy = _heliFormation select (_cs-1); _convoyH = _heliAltitude select (_cs-1); _convoyS = _heliSpeed select (_cs-1); _qtd = count _convoy; _helis = []; {_helis = _helis + [donn_heliConvy select _x];} forEach _convoy; for "_n" from 1 to _qtd do { private ["_firstDriver"]; _heli = _helis select (_n-1); _flyHeight = _convoyH select (_n-1); _motor = createVehicle [_heli select 0,_spawn,[],50,"FLY"]; {deleteVehicle _x;} forEach crew _motor; _motor removeAllEventHandlers "handleDamage"; _motor addEventHandler ["handleDamage",{_this call donn_heli_HD}]; _motor setVariable ["dncmv",true,false]; _motor setVariable ["dnishp",true,true]; _motor setVariable ["dnishpq",_heli select 3,true]; _motor setFuel 1; _motor setVehicleLock "LOCKED"; _motor flyInHeight _flyHeight; _ammos = _heli select 2; {_ammo = _x;for "_a" from 1 to 8 do {_motor addMagazineTurret [_ammo,[_forEachIndex]];};} forEach _ammos; _driverCount = 1; _turreterCount = count _ammos; _cargorsCount = _heli select 1; _crewCount = _driverCount + _turreterCount + _cargorsCount; _gunnerPos = 0; for "_y" from 1 to _crewCount do { _unit = _heli_group createUnit ["TK_INS_Bonesetter_EP1",[50,50,0],[],50,"PRIVATE"]; _unit removeAllEventHandlers "killed"; _unit removeAllEventHandlers "handleDamage"; _unit addEventHandler ["killed",{_this call donn_heli_unitKill;}]; _unit addEventHandler ["handleDamage",{_this call donn_heli_unit_HD}]; [_unit] joinSilent _heli_group; _unit setSkill 0.85; removeAllWeapons _unit; {_unit removeMagazine _x} forEach magazines _unit; _unit addWeapon "RPK_74"; _unit selectWeapon "RPK_74"; for "_pa" from 1 to 2 do {_unit addMagazine "75Rnd_545x39_RPK";}; if (_y == 1) then { _unit assignAsDriver _motor; _unit moveInDriver _motor; _unit setSkill ["aimingAccuracy",0.65]; }; if (_y > 1 && _y <= 1 + _turreterCount) then { _unit assignAsGunner _motor; _unit moveInTurret [_motor,[_gunnerPos]]; _gunnerPos = _gunnerPos + 1; _unit setSkill ["aimingAccuracy",1]; }; if (_y > 1 + _turreterCount) then { _unit assignAsCargo _motor; _unit moveInCargo _motor; _unit setSkill ["aimingAccuracy",0.65]; }; }; {_x disableAi "TARGET";uiSleep 0.001;} forEach units _heli_group; {_x disableAi "AUTOTARGET";uiSleep 0.001;} forEach units _heli_group; _heli_group setCombatMode "BLUE";_heli_group setBehaviour "CARELESS"; _sphere = createVehicle ["Sign_sphere100cm_EP1",[0,0,0],[],0,"CAN_COLLIDE"]; _sphere attachTo [_motor,[0,0,3]]; }; [donn_hwps call BIS_fnc_selectRandom,_heli_group,_convoyS] call donn_makeAeroRoute; uiSleep (60*20); }; }; 3 - Run the script bellow in client side, with execVM.
      s_colect_heli = -1; while {true} do { _donn_cursorTarget = cursorTarget; _objVar = _donn_cursorTarget getVariable ["dnishpq",0]; _isHeliLoot = false; if (!isNil "_objVar") then { if (_objVar > 0) then { if (player distance _donn_cursorTarget < ((sizeOf typeOf _donn_cursorTarget)/2 + 4)) then { _isHeliLoot = true; }; }; }; if (_isHeliLoot) then { if (s_colect_heli < 0) then { _heliTxt = "Collect tragedy itens..."; if (alive _donn_cursorTarget) then {_heliTxt = "Collect heli itens!";}; s_colect_heli = player addaction[("<t color=""#6666bb"">" + _heliTxt + "</t>"),"andre_heliConvoy_itens.sqf",_donn_cursorTarget,5,false,true,"",""]; }; } else { player removeAction s_colect_heli; s_colect_heli = -1; }; uiSleep 1.5; }; 4 - Put the script bellow in the root of your mission file, with the name andre_heliConvoy_itens.sqf.
      _motor = _this select 3; _qLoot = _motor getVariable "dnishpq"; _loot1 = [ [["addWeaponCargoGlobal","Mk_48_DZ",[1,1,2]],["addMagazineCargoGlobal","100Rnd_762x51_M240",[1,2,3]]], //Maried Loot [["addWeaponCargoGlobal","M249_DZ",[1,1,2]],["addMagazineCargoGlobal","200Rnd_556x45_M249",[1,2,3]]], //Maried Loot [["addWeaponCargoGlobal","G36C",[1,1,2]],["addMagazineCargoGlobal","30Rnd_556x45_Stanag",[2,3,4]]], //Maried Loot [["addWeaponCargoGlobal","DMR_DZ",[1,1,2]],["addMagazineCargoGlobal","20Rnd_762x51_DMR",[3,4,5]]], //Maried Loot [["addWeaponCargoGlobal","AK_47_M",[1,1,2]],["addMagazineCargoGlobal","30Rnd_762x39_AK47",[2,3,4]]], //Maried Loot [["addWeaponCargoGlobal","NVGoggles",[2,3,4]]], [["addWeaponCargoGlobal","ItemEtool",[2,3,4]]], [["addWeaponCargoGlobal","Binocular_Vector",[2,3,4]]], [["addMagazineCargoGlobal","ItemBloodBag",[6,8,10]]], [["addMagazineCargoGlobal","PartEngine",[2,3,4]]], [["addMagazineCargoGlobal","ItemBandage",[10,15,20]]], [["addMagazineCargoGlobal","HandGrenade_West",[3,5,7]]], [["addMagazineCargoGlobal","ItemBriefcase100oz",[1,1,2]]] ]; if (_qLoot > 0) then { for "_i" from 1 to _qLoot do { _holder = createVehicle ["WeaponHolder",position player,[],1.5,"CAN_COLLIDE"]; { call compile format [ "_holder %1 ['%2',%3];", _x select 0, _x select 1, (_x select 2) call BIS_fnc_selectRandom ]; } forEach (_loot1 call BIS_fnc_selectRandom); }; _motor setVariable ["dnishpq",0,true]; }; Thankyou to Tang0 for more details in the install instructions:

    • By StimulusDanny
      Hi there!
       
                A few days ago I logged in just to see my GhostHawk and Little Bird gone. Yet, I can't see any method of stealing them other than parachuting. I thought some of you might help me protect my choppers better. 
       
                For the GhostHawk I had a 2x3 helipad with removed stairs and walls between the rotors, as for the little bird just one platform with the stairs removed, but no wall in the rotor.
       
       

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...