GMS_RC/@GMS/addons/GMS/Compiles/Vehicles/fn_loadVehicleCrew.sqf

24 lines
668 B
Plaintext
Raw Normal View History

2023-09-23 14:05:31 +00:00
/*
By Ghostrider [GRG]
Copywrite 2022
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
#include "\x\addons\GMS\Compiles\Init\GMS_defines.hpp"
2023-09-23 14:05:31 +00:00
if (isNil "GMS_blacklisted_vehicle_weapons") then {GMS_blacklisted_vehicle_weapons = []};
params["_veh","_group",["_crewCount",4]];
private _units = units _group;
for "_i" from 1 to _crewCount do
{
if (_units isEqualTo []) exitWith {};
_crew = _units deleteAt 0;
_crew moveInAny _veh;
};
{deleteVehicle _x} forEach _units;