BIS fnc garage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add example)
(links)
Line 38: Line 38:


|x1= <code>["Open",true] [[call]] BIS_fnc_garage;</code>|=
|x1= <code>["Open",true] [[call]] BIS_fnc_garage;</code>|=
|x2= <code>
|x2= <code>[[this]] [[addAction]] ["<t color='#1C56D3'>Garage</t>",{  
this addaction ["<t color='#1C56D3'>Garage</t>",{  
     _pos = [ [[player]], 30, [[getDir]] [[player]] ] [[call]] [[BIS_fnc_relPos]];  
     _pos = [ player, 30, getDir player ] call BIS_fnc_relPos;  
     BIS_fnc_garage_center = [[createVehicle]] [ "Land_HelipadEmpty_F", _pos, [], 0, "CAN_COLLIDE" ];  
     BIS_fnc_garage_center = createVehicle [ "Land_HelipadEmpty_F", _pos, [], 0, "CAN_COLLIDE" ];  
     ["Open",[[true]]<nowiki>]</nowiki> [[call]] [[BIS_fnc_garage]];  
     ["Open",true] call BIS_fnc_garage;  
}];
}];
</code>|=
</code>|=

Revision as of 07:09, 31 May 2015

Hover & click on the images for description

Description

Description:
/* Author: Karel Moricky Description: Splendid Virtual Arsenal Garage Parameter(s): 0: STRING - mode 1: ANY - params (see below) Modes: "Open" - Open the Arsenal 0 (Optional): BOOL - true to open full Arsenal, with all categories and items available (default: false) Returns: NOTHING */
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[mode,params] call BIS_fnc_garage
Return Value:
Nothing

Examples

Example 1:
["Open",true] call BIS_fnc_garage;
Example 2:
this addAction ["<t color='#1C56D3'>Garage</t>",{ _pos = [ player, 30, getDir player ] call BIS_fnc_relPos; BIS_fnc_garage_center = createVehicle [ "Land_HelipadEmpty_F", _pos, [], 0, "CAN_COLLIDE" ]; ["Open",true] 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