BIS_fnc_garage

From Bohemia Interactive Community
Revision as of 08:45, 31 May 2015 by Larrow (talk | contribs)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Splendid Virtual Arsenal Garage

Modes:
  • "Open" - Open the Arsenal
    • 0 (Optional): BOOL - true to open full Arsenal, with all categories and items available (default: false)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[mode,params] call BIS_fnc_garage
Parameters:
[mode,params]: Array
mode: String
params: Any
Return Value:
Nothing

Examples

Example 1:
["Open",true] call BIS_fnc_garage;
Example 2:
this addAction ["Open Garage",{ //Create a position 30 meters infront of the player _pos = [ player, 30, getDir player ] call BIS_fnc_relPos; //Create empty helipad at the position and save it in the global variable BIS_fnc_garage_center BIS_fnc_garage_center = createVehicle [ "Land_HelipadEmpty_F", _pos, [], 0, "CAN_COLLIDE" ]; [ "Open", true ] call BIS_fnc_garage; }];
Example 3:
this addAction ["Open Garage",{ //Create a position 30 meters infront of the player _pos = [ player, 30, getDir player ] call BIS_fnc_relPos; //Create empty helipad at the position _vehicle = createVehicle [ "Land_HelipadEmpty_F", _pos, [], 0, "CAN_COLLIDE" ]; //Pass created vehicle to function for use as position ["Open",[ true, _vehicle ]] call BIS_fnc_garage; }];

Additional Information

See also:
Arsenal

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note