Larrow
Available namespace variables
missionNamespace
BIS_fnc_arsenal_center // copy of BIS_fnc_garage_center
BIS_fnc_arsenal_fullGarage // holds param 1 of "open" statement
BIS_fnc_arsenal_group // Group spawned vehicle is created in, default players group
BIS_fnc_arsenal_type // --- 0 - Arsenal, 1 - Garage
BIS_fnc_garage_center // Hold a reference to an OBJECT of where to spawn selected garage vehicle
BIS_fnc_garage_centerType // ? // default selected vehicle model from config
BIS_fnc_garage_data // Array of vehicles for garage tabs - see below
BIS_fnc_garage_turretPaths // ? // []
uiNamespace
BIS_fnc_arsenal_cam // null if arsenal is not open else holds reference to arsenal display
BIS_fnc_arsenal_toggleSpace // ?
BIS_fnc_garage_defaultClass // Default class to display
BIS_fnc_garage_stats // min and max values of config ["maxspeed","armor","fuelcapacity","threat"] of cfgVehicles >> crew
Available scripted eventHandlers
// [namespace event is stored in, event name, passed variables]
[missionNamespace, "garageOpened", [_display, _toggleSpace]]
[missionNamespace, "garageClosed", [displayNull, uiNamespace getVariable ["BIS_fnc_arsenal_toggleSpace", false]]]
Structure of BIS_fnc_garage_data
BIS_fnc_garage_data = [
// CARS
[
//model
"\a3\soft_f\offroad_01\offroad_01_unarmed_f",
// config paths of classes that use above model
[
config.bin/CfgVehicles/C_Offroad_01_F,
config.bin/CfgVehicles/B_G_Offroad_01_F
],
"\a3\soft_f\mrap_02\mrap_02_gmg_f",
[
config.bin/CfgVehicles/O_MRAP_02_gmg_F
]
],
[], // ARMOR
[], // HELIS
[], // PLANES
[], // NAVAL
[] // STATICS
]