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.
/ [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire, _useStatic, _preWaypoint, _crashDamage]
nul = [
3, //Number of the guaranteed Loot-Piles at the Crashside
4, //Number of the random Loot-Piles at the Crashside 3+(1,2,3 or 4)
2000, //Fixed-Time (in seconds) between each start of a new Chopper
500, //Random time (in seconds) added between each start of a new Chopper
1, //Spawnchance of the Heli (1 will spawn all possible Choppers, 0.5 only 50% of them)
'center', //Center-Marker for the Random-Crashpoints, for Chernarus this is a point near Stary
4000, //Radius in Meters from the Center-Marker in which the Choppers can crash and get waypoints
true, //Should the spawned crashsite burn (at night) & have smoke?
false, //Should the flames & smoke fade after a while?
false, //Use the Static-Crashpoint-Function? If true, you have to add Coordinates into server_spawnCrashSite.sqf
0, //Amount of Random-Waypoints the Heli gets before he flys to his Point-Of-Crash (using Static-Crashpoint-Coordinates if its enabled)
1 //Amount of Damage the Heli has to get while in-air to explode before the POC. (0.0001 = Insta-Explode when any damage//bullethit, 1 = Only Explode when completly damaged)
] spawn server_spawnCrashSite;
Im having the same issue did you find the solution?i can't get the step 3 working for some reasons
Code://Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; "heliCrash" addPublicVariableEventHandler { _list = nearestObjects [_this select 1, ["CraterLong"], 100]; {deleteVehicle _x;} foreach _list; };
did i mis-place the code-block?
_lootTable = ["Military","HeliCrash","MilitarySpecial"] call BIS_fnc_selectRandom;
_lootTable = ["HeliCrashEAST","HeliCrashWEST"] call BIS_fnc_selectRandom;
The scripts never needed nul = in the first place.
Use the updated script from 2 posts up.
I am using the script you posted, and I can't even get into my server.
Sorry to hear your having issues Matt L.
I can confirm the script i posted works perfectly in my server (UK130) installed the same way as described in the initial post.
Use notepad++ in your RPT file and search for the word "error", see what comes up and if anything looks like it might be from chopper crash sites.
21:27:17 Error in expression <"0";
};
if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0") then
{
>
21:27:17 Error position: <_objectID == "0" && _uid == "0") then
{
>
21:27:17 Error Nicht definierte Variable in Ausdruck: _objectid
21:27:17 File z\addons\dayz_server\compile\server_updateObject.sqf, line 24
21:27:17 "HIVE: WRITE: "CHILD:305:<null>:[0,[0,0,0]]:0:""
21:27:17 Error in expression <
};
_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
diag_log (>
21:27:17 Error position: <_objectID,_worldspace,_fuel];
diag_log (>
21:27:17 Error Nicht definierte Variable in Ausdruck: _objectid
21:27:17 File z\addons\dayz_server\compile\server_updateObject.sqf, line 53
21:27:17 Error in expression <Inventory",[]]);
if (str(_inventory) != _previous) then {
_object setVariable["l>
21:27:17 Error position: <_previous) then {
_object setVariable["l>
21:27:17 Error Nicht definierte Variable in Ausdruck: _previous
21:27:17 File z\addons\dayz_server\compile\server_updateObject.sqf, line 66
21:27:17 "HIVE: WRITE: "CHILD:306:<null>:[]:0:""
21:27:17 Error in expression <s;
0:19:41 Error in expression <sition select 2]; _isNotOk = true; }; };};
if (_isNotOk and _isbuildable) exit>
0:19:41 Error position: <};
if (_isNotOk and _isbuildable) exit>
0:19:41 Error Fehlende {
0:19:41 File z\addons\dayz_server\compile\server_updateObject.sqf, line 23
0:19:41 Error in expression <sition select 2]; _isNotOk = true; }; };};
if (_isNotOk and _isbuildable) exit>
0:19:41 Error position: <};
if (_isNotOk and _isbuildable) exit>
0:19:41 Error Fehlende {
0:19:41 File z\addons\dayz_server\compile\server_updateObject.sqf, line 23
Loot is not spawning with the heli crashes.
"//Check for hackers" \n
" {" \n
" if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"" && (vehicle _x getVariable [""Sarge"",0] != 1)) then {" \n
" diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
" (vehicle _x) setDamage 1;" \n
I am having the same issue. Also, my heli's spawn on the ground even though my .fsm looks like
Code:"//Check for hackers" \n " {" \n " if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"" && (vehicle _x getVariable [""Sarge"",0] != 1)) then {" \n " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n " (vehicle _x) setDamage 1;" \n