vehGearSettings.sqf - Global-Conflicts-ArmA/Olsen-Framework-Arma-3 GitHub Wiki
Description
vehGearSetting.sqf allows mission makers to create set loadouts/inventories of storage space such as ammo boxes.
Usage
- Create a new class or edit the example.
case "HUMMVEE": {
_vehicle call FUNC(RemoveAllVehicleGear);
["30Rnd_556x45_Stanag", 8] call FUNC(AddItemVehicle);
["rhs_weap_m4a1_carryhandle"] call FUNC(AddItemVehicle);
};
- To add more equipment, add the following line between the
{}
brackets.
["", 8] call FUNC(AddItemVehicle);
- Between the
""
marks, write/paste your class name of the item you wish to add to the loadout class. The number after is the quantity of the item. - While in-game, go into the init of the object you wish to apply the loadout to and add the following line
[this, "HUMMVEE"] call FW_fnc_VehGearScript;
The object you applied the loadout to should now contain your items.
You can also disable ACE carrying and/or dragging using the following
_vehicle setVariable ["ace_dragging_canDrag", false,true];
_vehicle setVariable ["ace_dragging_canCarry", false,true];