Jump to content

- - - - -


  • Please log in to reply
2 replies to this topic
Thread Starter

    Master Sergeant

  • Members
  • 779 posts

  • Joined: 16-July 2009

Posted 06 November 2011 - 15:45 #1

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 - 17:31.
South Asia Army FOB added

Posted Image


    Sergeant Major

  • Members
  • 1854 posts

  • Joined: 06-July 2004

Posted 06 November 2011 - 18:24 #2

thanks for sharing :)
Posted Image



  • Members
  • 122 posts

  • Joined: 28-March 2008

Posted 18 November 2011 - 00:50 #3

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 - 13:13.