From b924e4b06785bf71a512a5f0b3261587e9dfe1fb Mon Sep 17 00:00:00 2001 From: PiG13BR Date: Mon, 2 Sep 2024 13:55:35 -0300 Subject: [PATCH] Placeholder types in fn_createCrew.sqf --- Missionframework/functions/fn_createCrew.sqf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Missionframework/functions/fn_createCrew.sqf b/Missionframework/functions/fn_createCrew.sqf index dff0d6690..3a4087ae4 100644 --- a/Missionframework/functions/fn_createCrew.sqf +++ b/Missionframework/functions/fn_createCrew.sqf @@ -25,6 +25,18 @@ if (isNull _vehicle) exitWith {["No vehicle provided"] call BIS_fnc_error}; private _typeCrew = ""; +// Placeholder types +switch (_side) do { + case KPLIB_side_enemy : { + _typeCrew = KPLIB_o_rifleman; + }; + case KPLIB_side_player : { + _typeCrew = KPLIB_b_crewUnit; + } +}; + +/* +Save it for later changes switch (_side) do { case KPLIB_side_enemy : { if (_vehicle isKindOf "Air") then { @@ -49,6 +61,7 @@ switch (_side) do { } } }; +*/ // Get all available sets from the vehicle private _seats = fullCrew [_vehicle, "", true]; @@ -114,4 +127,4 @@ private _allCrew = []; }forEach _seats; // Return all the vehicle crew and its group -[_allCrew,_grp] \ No newline at end of file +[_allCrew,_grp]