Main Menu

Arsenal

Started by Tutonic, February 10, 2015, 05:19:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tutonic

Has anyone tried using this in their maps?

https://community.bistudio.com/wiki/Arsenal

It's like a super shiny Virtual Ammobox, a bit easier to use and has a nice 3D preview showing different weapon stats (ROF, range etc).

Virtual Ammo Box
You can also use Arsenal as virtual inventory, allowing players to get unlimited number of items of given types from an ammo box. Action to access the Arsenal will be added automatically on all clients, you don't need to use addAction to enable it.


Syntax (shared by all mentioned functions):


[&quot;AmmoboxInit&quot;,<box>] spawn BIS_fnc_arsenal;or


["AmmoboxInit",[,(,)]] spawn BIS_fnc_arsenal;box: Object - ammo box on which the action will be added
allowAll (Optional): Boolean - true to add all available weapons, magazines, items and backpacks in the box
condition (Optional) (Development build only): Condition for showing the Arsenal action (default: {true})
Passed arguments are the same as in addAction condition, i.e., _target - the box, _this - caller
Returned value: Nothing


Example (paste it into init field of a box)


0 = ["AmmoboxInit",[this,true]] spawn BIS_fnc_arsenal;
Hero of the Battle Of Chalkeia
"Don\'t worry, none of this blood is mine"



sulky_uk



I came into this world with nothing,
through careful management I\'ve got most of it left.

Sparko

Ooooo shiny :)

I'm going to teak a few of my missions and update them with some of the new stuff others have used, might add this to the list.

Tutonic

This is part of the new stuff that came through with the Zeus updates, it's all official BI stuff so should be easy to implement.
Hero of the Battle Of Chalkeia
"Don\'t worry, none of this blood is mine"



Chaosphere

That is very nice.

If there is other official BI stuff we can add, maybe we should also look into it?
All our Gods have abandoned us.