Skip to content

Commit

Permalink
Placeholder types in fn_createCrew.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PiG13BR authored Sep 2, 2024
1 parent 2553429 commit b924e4b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Missionframework/functions/fn_createCrew.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -49,6 +61,7 @@ switch (_side) do {
}
}
};
*/

// Get all available sets from the vehicle
private _seats = fullCrew [_vehicle, "", true];
Expand Down Expand Up @@ -114,4 +127,4 @@ private _allCrew = [];
}forEach _seats;

// Return all the vehicle crew and its group
[_allCrew,_grp]
[_allCrew,_grp]

0 comments on commit b924e4b

Please sign in to comment.