Jump to content
Sign in to follow this  
Painex

Medic Helicopter Spawn Problem

Recommended Posts

Hello, 

Although I've adjusted the helipad positions, the helicopter comes out diagonally. I set the Spawn positions via the editor, but the same 

 

107410_screenshots.jpg

412010_screenshots.jpg

Share this post


Link to post
Share on other sites
1 hour ago, Deadlesszombie said:

UDF0ria.png

Change the direction of the hospital marker

I don't know exactly what to do here. Am I going to write the codes in the picture I showed you?

Can you check it out?

 

init.sqf

Edited by Painex

Share this post


Link to post
Share on other sites
On 1/4/2020 at 8:17 PM, Painex said:

I don't know exactly what to do here. Am I going to write the codes in the picture I showed you?

Can you check it out?

 

init.sqf 8.23 kB · 0 downloads

image.thumb.png.9571523265125018172e06dc2a318de5.png

These are the names of the map markers you are looking for, rotate them in the direction you want the helicopter to face. I highlighted setDir to show you that it is based on the marker's rotation 😃

Share this post


Link to post
Share on other sites
On 1/6/2020 at 10:10 AM, Deadlesszombie said:

image.thumb.png.9571523265125018172e06dc2a318de5.png

These are the names of the map markers you are looking for, rotate them in the direction you want the helicopter to face. I highlighted setDir to show you that it is based on the marker's rotation 😃

Dude, I don't get it. And when I enter the game, the hospital looks, but when I enter the editor, it doesn't. 

20200107182932_1.jpg

Share this post


Link to post
Share on other sites
4 hours ago, Fawks said:

That's because those hospitals are being spawned in life_server's init on lines 90-115.

https://github.com/AsYetUntitled/Framework/blob/master/life_server/init.sqf


{
    _hs = createVehicle ["Land_Hospital_main_F", [15545.06], [17277.098], 313.298, "NONE"];
    _hs setDir (markerDir _x);
    _hs setPosATL (getMarkerPos _x);
    _var = createVehicle ["Land_Hospital_side1_F", [15565.576], [17251.34], 313.231, "NONE"];
    _var attachTo [_hs, [4.69775,32.6045,-0.1125]];
    detach _var;
    _var = createVehicle ["Land_Hospital_side2_F", [15553.685], [17224.047], 313.243, "NONE"];
    _var attachTo [_hs, [-28.0336,-10.0317,0.0889387]];
    detach _var;
    if (worldName isEqualTo "Tanoa") then {
        if (_forEachIndex isEqualTo 0) then {
            atm_hospital_2 setPos (_var modelToWorld [4.48633,0.438477,-8.25683]);
            vendor_hospital_2 setPos (_var modelToWorld [4.48633,0.438477,-8.25683]);
            "medic_spawn_3" setMarkerPos (_var modelToWorld [8.01172,-5.47852,-8.20022]);
            "med_car_2" setMarkerPos (_var modelToWorld [8.01172,-5.47852,-8.20022]);
            hospital_assis_2 setPos (_hs modelToWorld [0.0175781,0.0234375,-0.231956]);
        } else {
            atm_hospital_3 setPos (_var modelToWorld [4.48633,0.438477,-8.25683]);
            vendor_hospital_3 setPos (_var modelToWorld [4.48633,0.438477,-8.25683]);
            "medic_spawn_1" setMarkerPos (_var modelToWorld [-1.85181,-6.07715,-8.24944]);
            "med_car_1" setMarkerPos (_var modelToWorld [5.9624,11.8799,-8.28493]);
            hospital_assis_2 setPos (_hs modelToWorld [0.0175781,0.0234375,-0.231956]);
        };
    };
} forEach ["hospital_2","hospital_3"];

I wrote down the hospital coordinates But again when I take out the helicopter, it comes out crosswise. I don't know exactly how to solve this problem.

Share this post


Link to post
Share on other sites
8 hours ago, Fawks said:

Change the direction the spawn marker is facing to your desired direction.

Although I tried everything, nothing changed. I added 3 images and missions.sqm and init.sqf files.

 

6543453456453_43.jpg

7345354345543_543.jpg

20200109044515_12.jpg

init.sqf mission.sqm

Share this post


Link to post
Share on other sites

Athira medical hospital has 2 spawn locations. And one of these spawn points is the doctor vehicle removal point, and the other is the medic spawn point. But even though I built it at the helicopter spawn, everything is the same and nothing changes. Also the athira hospital and pygos hospital do not appear in the editor. But Kavala hospital is seen. And I also added the athira hospital myself, and I can't change the direction of the helicopter in any way.

Share this post


Link to post
Share on other sites

You need to add an offset to the rotation of the vehicle when it's spawned, i think the relevant fiels are fn_vehicleShopBuy.sqf and fn_spawnVehicle.sqf. You should see there  is an edge case for if it's at the hospital

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.