Jump to content
Sign in to follow this  
David77

Bis_Fnc_SpawnVehicle

Recommended Posts

I'm trying to very simply create a flying helo, move a group into it's cargo (pre-defined editor group), set the fly height, and get him moving to a markers position. The helo spawns & I get errors regarding the FlyInheight & MoveInCargo. I thought we could use the handle (helo1) to refer to the vehicle? Also, helo1 will move to the marker position via the DoMove command, if I comment out the non-working parts. Why can't I use the handle helo1 to access the vehicle with the other commands, moveincargo & flyinheight?

helo1 = [[(getMarkerPos "b1") select 0,(getMarkerPos "b1") select 1,300], 0, "O_Heli_Light_02_F", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
helo1 flyinheight 300;
helo1 DoMove GetMarkerPos "b2"; 

rpt:

control[CA_ValueMode]: Unexpected control type [4]
control[CA_ValueMode]: Unexpected control type [4]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\acc\reticle_arco_f.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\acc\reticle_arco_f.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
Attempt to override final function - bis_functions_list
Attempt to override final function - bis_functions_listpreinit
Attempt to override final function - bis_functions_listpostinit
Attempt to override final function - bis_functions_listrecompile
Attempt to override final function - bis_fnc_missiontaskslocal
Attempt to override final function - bis_fnc_missionconversationslocal
Attempt to override final function - bis_fnc_missionflow
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_LAT_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_LAT_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?
[color="#FF0000"]Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo helo1} ForEach Units para;
h>
 Error position: <MoveInCargo helo1} ForEach Units para;
h>
 Error 3 elements provided, 2 expected
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 4
Error in expression <nCargo helo1} ForEach Units para;
helo1 flyinheight 300;
helo1 DoMove GetMarkerP>
 Error position: <flyinheight 300;
helo1 DoMove GetMarkerP>
 Error flyinheight: Type Array, expected Object
File C:\Users\David\Documents\Arma 3 - Other Profiles\%2a%2a%2a1cem@n%2a%2a%2a\missions\weapons.Stratis\init.sqf, line 5[/color]
control[CA_ValueMode]: Unexpected control type [4]
control[CA_ValueMode]: Unexpected control type [4]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\acc\reticle_arco_f.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
Attempt to override final function - bis_functions_list
Attempt to override final function - bis_functions_listpreinit
Attempt to override final function - bis_functions_listpostinit
Attempt to override final function - bis_functions_listrecompile
Attempt to override final function - bis_fnc_missiontaskslocal
Attempt to override final function - bis_fnc_missionconversationslocal
Attempt to override final function - bis_fnc_missionflow
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_AR_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_LAT_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_Soldier_LAT_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?
soldier[O_helipilot_F]:Some of magazines weren't stored in soldier Vest or Uniform?

Edit: Or is the handle referring to the pilot and not the vehicle itself?... That's the only thing I can think of, since the move command works but the others don't.

Edited by David77

Share this post


Link to post
Share on other sites
helo1 = [[(getMarkerPos "b1") select 0,(getMarkerPos "b1") select 1,300], 0, "O_Heli_Light_02_F", east] call Bis_fnc_spawnvehicle;
{_x MoveInCargo [color="#FF0000"](helo1 Select 0)[/color]} ForEach Units para;
[color="#FF0000"](helo1 Select 0)[/color] flyinheight 300;
[color="#FF0000"](helo1 select 0)[/color] DoMove GetMarkerPos "b2"; 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×