BIS fnc spawnVehicle – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "_uav = ([getPos player, 0, "B_UAV_02_F", group player] call BIS_fnc_spawnVehicle) select 0; //crew is created and immediately deleted createVehicleCrew _uav; //crew created but n...")
 
m (Text replacement - "<code>" to "<code style="display: block">")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
_uav = ([getPos player, 0, "B_UAV_02_F", group player] call BIS_fnc_spawnVehicle) select 0;
<code style="display: block">_uav = ([getPos player, 0, "B_UAV_02_F", group player] call BIS_fnc_spawnVehicle) select 0;
//crew is created and immediately deleted
//crew is created and immediately deleted
createVehicleCrew _uav;
createVehicleCrew _uav;
//crew created but not in the players group
//crew created but not in the players group
(crew _uav) join (group player);  
(crew _uav) join (group player);  
//now crew is in the same group
//now crew is in the same group</code>


Is this intended behaviour of the function?
Is this intended behaviour of the function?


-KK
-KK

Latest revision as of 11:52, 11 January 2023

_uav = ([getPos player, 0, "B_UAV_02_F", group player] call BIS_fnc_spawnVehicle) select 0; //crew is created and immediately deleted createVehicleCrew _uav; //crew created but not in the players group (crew _uav) join (group player); //now crew is in the same group

Is this intended behaviour of the function?

-KK