BIS fnc arsenal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (NEEDS EXAMPLES!!! GVI 1.00 --> 1.24 bootcamp update, added temp descrip, added examples)
Line 5: Line 5:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|1.24|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |= Description
|<code> /*
Author: Karel Moricky
 
Description:
Splendid arsenal viewer
 
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)
 
"Preload" - Preload item configs for Arsenal (without preloading, configs are parsed the first time Arsenal is opened)
No params
 
"AmmoboxInit" - Add virtual ammobox. Action to access the Arsenal will be added automatically on all clients.
0: OBJECT - ammobox
1 (Optional): BOOL - true to make all weapons and items in the game available in the box (default: false)
2 (Optional): Condition for showing the Arsenal action (default: {true})
      Passed arguments are the same as in addAction condition, i.e., _target - the box, _this - caller
 
"AmmoboxExit" - Remove virtual ammobox
0: OBJECT - ammobox
 
 
Returns:
NOTHING
*/
</code> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_arsenal]]; --> |= Syntax
| [mode,params] call [[BIS_fnc_arsenal]] |= Syntax


|p1= |= Parameter 1
|p1= |= Parameter 1
Line 18: Line 49:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>"Open" Unkown without crashing</code> |=
|x2= <code>["Preload"] call BIS_fnc_arsenal; </code> |=
|x3= <code>["AmmoboxInit",[ammobox,true,{true}]] call BIS_fnc_arsenal;//applies arsenal to object "ammobox" and includes all items.</code> |=
|x4= <code>["AmmoboxExit",[ammobox]] call BIS_fnc_arsenal//Doesnt work</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 05:36, 6 October 2014


Hover & click on the images for description

Description

Description:
/* Author: Karel Moricky Description: Splendid arsenal viewer 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) "Preload" - Preload item configs for Arsenal (without preloading, configs are parsed the first time Arsenal is opened) No params "AmmoboxInit" - Add virtual ammobox. Action to access the Arsenal will be added automatically on all clients. 0: OBJECT - ammobox 1 (Optional): BOOL - true to make all weapons and items in the game available in the box (default: false) 2 (Optional): Condition for showing the Arsenal action (default: {true}) Passed arguments are the same as in addAction condition, i.e., _target - the box, _this - caller "AmmoboxExit" - Remove virtual ammobox 0: OBJECT - ammobox Returns: NOTHING */
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[mode,params] call BIS_fnc_arsenal
Return Value:
Return value needed

Examples

Example 1:
"Open" Unkown without crashing
Example 2:
["Preload"] call BIS_fnc_arsenal;
Example 3:
["AmmoboxInit",[ammobox,true,{true}]] call BIS_fnc_arsenal;//applies arsenal to object "ammobox" and includes all items.
Example 4:
["AmmoboxExit",[ammobox]] call BIS_fnc_arsenal//Doesnt work

Additional Information

See also:
See also needed

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

Notes

Bottom Section