BIS fnc garage: Difference between revisions

From Bohemia Interactive Community
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]] ["<t color='#1C56D3'>Garage</t>",{  
|x2= <code>[[this]] [[addAction]] ["Open Garage",{
    _pos = [ [[player]], 30, [[getDir]] [[player]] ] [[call]] [[BIS_fnc_relPos]];  
 
    BIS_fnc_garage_center = [[createVehicle]] [ "Land_HelipadEmpty_F", _pos, [], 0, "CAN_COLLIDE" ];  
//Create a position 30 meters infront of the player
    ["Open",[[true]]<nowiki>]</nowiki> [[call]] [[BIS_fnc_garage]];  
_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

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