Heli Crashes on both islands

cen

Valued Member!
Any body know of a way to do this?

I'm wondering if I set the center point to be in the middle of the bridge if the radius is big enough to spawn them on both islands?

Any insight?
 
In server_functions.sqf there's this code:

Code:
_position = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;

I know that is calling the "center" marker from mission.sqm but is 4000 the radius? What about the rest of the numbers in the array?
 
All you had to do was to ask me and i could have told you :p Anyway i've fixed it for you and now you have better spawns and heli crash spread :D
 
So for anyone else that needs this, you can set the "center" marker in your mission.sqm to be in the water in between both islands, increase your radius from 4000 to 5000 (or more) and heli crashes should spawn on both islands!
 
Hey Cen;

This is all I found in my mission.sqm...

class Item6
{
position[]={8511.4658,-0.14474626,16773.117};
name="center";
type="Empty";
};

Is that where I need to set the cords? If so, what would they be?
 
you'll have to play with it a bit, but find a spot centered in the water between both islands. Don't get too close to the bridge though.

If you want to do it in game, grab a PBX and find a spot, log out then check the database for your coords.
 
ok so I am just south of the bridge in the water and my worldspace id is [181,[12473.9,7482.07,50.234]]
soo change my current center too ??? 12473.9-7482.07,50.234
class Item6
{
position[]={8511.4658,-0.14474626,16773.117};
name="center";
type="Empty";
};
12473.9-7482.07,50.234
 
well I got crash sites only on small island now near racetrack
has anyone got thins woking on both islands ??? if soo please what was the center position you used?
 
What u want todo is make up 2 different markers & edit your server code that calls on heli sites + do it twice for both islands.

Its alot easier that way imo..

But honestly i perfer the cj130 crashsites look @ script addons section
 
I use dayz.st and I dont believe they give access to the server code
I had c130 crashes but I think they covered up half the loot or maybe it just seemed that way
 
http://dayz.st/w/Custom_Helicopter_Crash_Loot
According to that u can modify the server pbo = server code.

C130 crash sites
Just edit the range of the range of loot spawning... believe its like 0.550 / 0.6 and just increase the range i.e double it

Regardless u will need to modify the code to either increase the range of where heli sites spawn from marker like in the 2nd post.
Or u make 2 markers + change the code to spawn heli sites @ both markers
 
I changed the 4000 to 5000 like this ... but can you explain setting two markers where and how
spawn_heliCrash = {
private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray"];

waitUntil{!isNil "BIS_fnc_selectRandom"};
if (isDedicated) then {
_position = [getMarkerPos "center",0,5000,10,0,2000,0] call BIS_fnc_findSafePos;
diag_log("DEBUG: Spawning a crashed helicopter at " + str(_position));
_veh = createVehicle ["MH60Wreck",_position, [], 0, "CAN_COLLIDE"];
 
Code:
spawn_heliCrash = {
    private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray", "markerpos"];
    
    waitUntil{!isNil "BIS_fnc_selectRandom"};
    if (isDedicated) then {
    _markerpos = ["heli1", "heli2"] call BIS_fnc_selectRandom;
    _position = [getMarkerPos _markerpos,0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
 
Code:
spawn_heliCrash = {
    private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray", "markerpos"];
 
    waitUntil{!isNil "BIS_fnc_selectRandom"};
    if (isDedicated) then {
    _markerpos = ["heli1", "heli2"] call BIS_fnc_selectRandom;
    _position = [getMarkerPos _markerpos,0,4000,10,0,2000,0] call BIS_fnc_findSafePos;

is that all I need to change ???
how does it know what "heli1", "heli2" and getMarkerPos _markerpos,0 is ?? do I have to add them in some where else ?
dont I need to tell it the second center position
 
U need to add heli1 & heli2 marker in your mission.sqm...
Just edit the file & add 2 more markers for example
Code:
    class Markers
    {
        items=9;
Code:
        class Item6
        {
            position[]={8511.4658,-0.14474626,16773.117};
            name="center";
            type="Empty";
        };
        class Item7
        {
            position[]={8511.4658,-0.14474626,16773.117};
            name="heli1";
            type="Empty";
        };
        class Item8
        {
            position[]={8511.4658,-0.14474626,16773.117};
            name="heli2";
            type="Empty";
        };

Change the co-ords to whereever abouts u want heli crash sites to appear around.
Important
items=9; but the last Item8 thats because its starts @ zero.

-----------
-----------
Anyway the code above tells crash helis to pick at random a position (which are called heli1 or heli2).
It then stores this result in _markerpos
 
dint work there wer no crash sites anywhere ;(
class Item6
{
position[]={8511.4658,-0.14474626,16773.117};
name="center";
type="Empty";
};
class Item7
{
position[]={8511.4658,-0.14474626,16773.117};
name="heli1";
type="Empty";
};
class Item8
{
position[]={181,[12473.9,7482.07,50.234};
name="heli2";
type="Empty";
};
Server functions
spawn_heliCrash = {
private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray", "markerpos"];

waitUntil{!isNil "BIS_fnc_selectRandom"};
if (isDedicated) then {
_markerpos = ["heli1", "heli2"] call BIS_fnc_selectRandom;
_position = [getMarkerPos _markerpos,0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
diag_log("DEBUG: Spawning a crashed helicopter at " + str(_position));
_veh = createVehicle ["UH1Wreck_DZ",_position, [], 0, "CAN_COLLIDE"];
 
Back
Top