Simon1901
-
Content Count
2 -
Joined
-
Last visited
-
Medals
Posts posted by Simon1901
-
-
Before you guys do more rocket science to just spawn a plane and a pilot... :)Place the functions module in the editor.
_vec_array = [markerPos "some_marker", random 360, "A10", west] call BIS_fnc_spawnVehicle;
That's it. Paramters and return values:
Parameter(s):
_this select 0: desired position (Array).
_this select 1: desired azimuth (Number).
_this select 2: type of the vehicle (String).
_this select 3: side or existing group (Side or Group).
Returns:
Array:
0: new vehicle (Object).
1: all crew (Array of Objects).
2: vehicle's group (Group).
The function will add the correct crew members, fill up all crew positions and will spawn aircrafts in the air, aka flying.
Xeno
Ok so everyone seems to say that this works, but I can't figure out how?
I am new to scripting, but I guess that I am supposed to put this text into the module and have a marker called something that matches what I've put in the markerPos, like "airspawn".
The problem is that I can't understand how to use this, how do I even place a marker that's usable in the first place?
Becouse all I am doing now is just putting the text "_vec_array = [markerPos "airspawn", 90, "A10", west] call BIS_fnc_spawnVehicle;" inte the modules init box, placing a marker from the markers menu (F6) and naming it "airspawn".
I guess I'll have to place the marker in the air with something like "setMarkerPos [x,y,100]" but I've got no idea how to do that, as there is no init box or anything when placing a marker.. I am not even sure if thats the right way to create a marker for this purpose.
As I said I am really terrible at scripting and I would be very greatful if someone could explain this step by step, thank you so much in advance :o
Spawning an active flying aircraft with a trigger..
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted
Thank you, now it spawns.. but it's still at ground level. Have you got a clue why, or perhaps even a solution to this?
And also, thank you for replying this fast :)