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:
PHP Code:
_HeliPort = nearestObject [(getPos player), "Land_Heliport_Small_H"];
[(getPos _HeliPort), (getDir _HeliPort), "heliport_hangarDefault"] spawn BIS_fnc_ObjectsMapper;
And the exterior:
PHP Code:
_HeliPort = nearestObject [(getPos player), "Land_Heliport_Small_H"];
[(getPos _HeliPort), ((getDir _HeliPort) + 110), "heliport_hangarExterior"] spawn BIS_fnc_ObjectsMapper;
Composition classlist:
Code:
heliport_hangarDefault Heliport hangar (small)
heliport_hangarExterior Heliport exterior
heliport_helipadCivil Helicopter landing pad (Civilian)
heliport_helipadInvisible Helicopter landing position (invisible)
heliport_shipWreck Vrana Corp. shipwreck
Army FOB South Asia (Located just east of Qabedzan):
PHP Code:
_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:
PHP Code:
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;