BIS fnc arsenal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (removal of an incorrect note)
Line 79: Line 79:
<code>[[removeAllActions]] ammobox</code>
<code>[[removeAllActions]] ammobox</code>


</dd>
</dl>
<!-- DISCONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on September 2, 2017 - 22:36 (UTC)</dd>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
calling or spawning BIS_fnc_Arsenal with arguments ["AmmoBoxInit", true] will show a "%ALL" error ([[BIS_fnc_error]]) when the player actually uses it.<br />
Use <code>[myCrate, "%ALL", true] call BIS_fnc_removeVirtualWeaponCargo</code> to remove this "%ALL" parameter.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 14:54, 6 September 2017


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] spawn BIS_fnc_arsenal
Return Value:
Return value needed

Examples

Example 1:
["Open",true ] spawn BIS_fnc_arsenal;//Using call crashes the game
Example 2:
["Preload"] call BIS_fnc_arsenal;
Example 3:
["AmmoboxInit",[ammobox,true,{true}]] spawn BIS_fnc_arsenal;//applies Arsenal to object "ammobox" and includes all items.

Additional Information

See also:
ArsenalBIS_fnc_garage

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

Posted on October 6, 2014 - 04:59 (UTC)
Benargee
To remove arsenal from an ammo box, you can use: removeAllActions ammobox