Jump to content

- - - - -


  • Please log in to reply
2 replies to this topic

#1 sxp2high


    Master Sergeant

  • Members
  • 779 posts

Posted 06 November 2011 - 03:45 PM

Hi everyone, just wanna share this...

I was wondering how to get the Heliport from the campaign, with all the furniture and stuff.
Well, i found it.

Just put your player near the heliport and add the following code to your init.sqf

This will setup the Heliport interior:
_HeliPort = nearestObject [(getPos player), "Land_Heliport_Small_H"];
[(getPos _HeliPort), (getDir _HeliPort), "heliport_hangarDefault"] spawn BIS_fnc_ObjectsMapper;

And the exterior:
_HeliPort = nearestObject [(getPos player), "Land_Heliport_Small_H"];
[(getPos _HeliPort), ((getDir _HeliPort) + 110), "heliport_hangarExterior"] spawn BIS_fnc_ObjectsMapper;

Composition classlist:
[B]heliport_hangarDefault[/B] Heliport hangar (small)
[B]heliport_hangarExterior[/B] Heliport exterior
[B]heliport_helipadCivil[/B] Helicopter landing pad (Civilian)
[B]heliport_helipadInvisible[/B] Helicopter landing position (invisible)
[B]heliport_shipWreck[/B] Vrana Corp. shipwreck

Army FOB South Asia (Located just east of Qabedzan):
_objs = [[78506.133, 76725.117], 0, call (compile (preprocessFileLineNumbers "hsim\missions_h\campaign\missions\us_mil_02.south_asia_h\dyno_us_mil_02_1.sqf"))] call BIS_fnc_ObjectsMapper;

To have the FOB on a different location just place a Game Logic and put this into it's init line:
theFOB = [(getPos this), 0, call (compile (preprocessFileLineNumbers "hsim\missions_h\campaign\missions\us_mil_02.south_asia_h\dyno_us_mil_02_1.sqf"))] call BIS_fnc_ObjectsMapper;

Edited by sxp2high, 07 November 2011 - 05:31 PM.
South Asia Army FOB added

Posted Image

#2 -DirTyDeeDs--Ziggy-


    Sergeant Major

  • Members
  • 1854 posts

Posted 06 November 2011 - 06:24 PM

thanks for sharing :)
Posted Image

#3 Mavericko



  • Members
  • 122 posts

Posted 18 November 2011 - 12:50 AM

Uh, or you could press F7 in the editor and add the Heliport module, and sync it to a helicopter and voila :P The only problem though is that the helicopter will spawn on the helipad right outside the hangar, and the player will spawn in the helicopter. Which is only a problem if you wanted them somewhere else, which I actually do in my mission, which means I will have use of your script! Thank you.


1st Edit: Is there a way to change what helicopter spawns inside the hangar?

2nd Edit: Apperantly it does not work to press F7 for me in the editor, but you can still click on the modules button.

Edited by Mavericko, 18 November 2011 - 01:13 PM.