binocularItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |Game name=
|game1= arma3
|2.01|Game version=
|version1= 2.02
|arg= global|Multiplayer Arguments=


|gr1= Weapons |GROUP1=
|arg= global


|gr2= Containers |GROUP2=
|gr1= Unit Inventory
____________________________________________________________________________________________


| Returns array with all items assigned to the [[binocular]] weapon except magazines. Use [[binocularMagazine]] command for the latter. This command is used for infantry weapons only. |DESCRIPTION=
|descr= Returns array with all items assigned to the [[binocular]] weapon except magazines. Use [[binocularMagazine]] command for the latter. This command is used for infantry weapons only.
____________________________________________________________________________________________


| '''binocularItems''' unit |SYNTAX=
|s1= [[binocularItems]] unit


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


| [[Array]] - [silencer, laserpointer/flashlight, optics, bipod] |RETURNVALUE=
|r1= [[Array]] with [silencer, pointer, optic, bipod]
* silencer: [[String]]
* pointer: [[String]] - laserpointer or flashlight
* optic: [[String]]
* bipod: [[String]]


|x1= <sqf>binocularItems player;</sqf>


|x1= <code>[[binocularItems]] [[player]];</code>|EXAMPLE1=
|seealso= [[addBinocularItem]] [[removeBinocularItem]] [[removeAllBinocularItems]] [[binocularMagazine]] [[weaponAccessories]] [[weaponAccessoriesCargo]] [[primaryWeaponItems]] [[secondaryWeaponItems]] [[handgunItems]] [[weaponsItems]] [[weaponsItemsCargo]]
 
____________________________________________________________________________________________
 
| [[addBinocularItem]], [[removeBinocularItem]], [[removeAllBinocularItems]], [[binocularMagazine]], [[weaponAccessories]], [[weaponAccessoriesCargo]], [[primaryWeaponItems]], [[secondaryWeaponItems]], [[handgunItems]], [[weaponsItems]], [[weaponsItemsCargo]]   |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 21:58, 26 September 2024

Hover & click on the images for description

Description

Description:
Returns array with all items assigned to the binocular weapon except magazines. Use binocularMagazine command for the latter. This command is used for infantry weapons only.
Groups:
Unit Inventory

Syntax

Syntax:
binocularItems unit
Parameters:
unit: Object
Return Value:
Array with [silencer, pointer, optic, bipod]

Examples

Example 1:
binocularItems player;

Additional Information

See also:
addBinocularItem removeBinocularItem removeAllBinocularItems binocularMagazine weaponAccessories weaponAccessoriesCargo primaryWeaponItems secondaryWeaponItems handgunItems weaponsItems weaponsItemsCargo

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