BIS fnc garage: Difference between revisions
Jump to navigation
Jump to search
(params, description) |
No edit summary |
||
Line 27: | Line 27: | ||
|x1= <code>["Open",true] [[call]] BIS_fnc_garage;</code>|= | |x1= <code>["Open",true] [[call]] BIS_fnc_garage;</code>|= | ||
|x2= <code>[[this]] [[addAction]] ["< | |x2= <code>[[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]] <nowiki>]</nowiki> [[call]] [[BIS_fnc_garage]]; | |||
}]; | |||
</code>|= | |||
|x3= <code>[[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 ]<nowiki>]</nowiki> [[call]] [[BIS_fnc_garage]]; | |||
}]; | }]; | ||
</code>|= | </code>|= |
Revision as of 07:45, 31 May 2015
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)
- "Open" - Open the Arsenal
- 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