addBinocularItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3dev |Game name=
| arma3dev


|2.01|Game version=
|2.01


|arg= local |MPARGUMENTS=
|arg= local |MPARGUMENTS=
|eff= global |MPeff=
|eff= global |MPeff=


|gr1= Unit Inventory |GROUP1=
|gr1= Unit Inventory


| Adds weapon item, including magazine, directly to the [[binocular]] weapon. This is used for infantry weapons.|DESCRIPTION=
| Adds weapon item, including magazine, directly to the [[binocular]] weapon. This is used for infantry weapons.


| unit '''addBinocularItem''' item |SYNTAX=
| unit '''addBinocularItem''' item


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]


|p2= item: [[String]] |PARAMETER2=
|p2= item: [[String]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]




|x1= <code> [[player]] [[addBinocularItem]] "Laserbatteries";</code>|EXAMPLE1=
|x1= <code> [[player]] [[addBinocularItem]] "Laserbatteries";</code>


|  [[addWeaponItem]], [[removeBinocularItem]], [[removeAllBinocularItems]], [[addPrimaryWeaponItem]], [[addSecondaryWeaponItem]], [[addHandgunItem]], [[weaponsItems]], [[binocularItems]], [[primaryWeaponItems]], [[secondaryWeaponItems]], [[handgunItems]] |SEEALSO=
|  [[addWeaponItem]], [[removeBinocularItem]], [[removeAllBinocularItems]], [[addPrimaryWeaponItem]], [[addSecondaryWeaponItem]], [[addHandgunItem]], [[weaponsItems]], [[binocularItems]], [[primaryWeaponItems]], [[secondaryWeaponItems]], [[handgunItems]]


| |MPBEHAVIOUR=  
| |MPBEHAVIOUR=  

Revision as of 00:03, 18 January 2021

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.01|2.01]]
Hover & click on the images for description

Description

Description:
Adds weapon item, including magazine, directly to the binocular weapon. This is used for infantry weapons.
Groups:
Unit Inventory

Syntax

Syntax:
unit addBinocularItem item
Parameters:
unit: Object
item: String
Return Value:
Nothing

Examples

Example 1:
player addBinocularItem "Laserbatteries";

Additional Information

See also:
addWeaponItemremoveBinocularItemremoveAllBinocularItemsaddPrimaryWeaponItemaddSecondaryWeaponItemaddHandgunItemweaponsItemsbinocularItemsprimaryWeaponItemssecondaryWeaponItemshandgunItems

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

[[Category:Introduced with arma3dev version 2.01]][[ Category: arma3dev: New Scripting Commands | ADDBINOCULARITEM]][[ Category: arma3dev: Scripting Commands | ADDBINOCULARITEM]]

Notes

Bottom Section