weaponAccessoriesCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Some wiki formatting)
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.22


|1.22|Game version=
|gr1= Vehicle Inventory
____________________________________________________________________________________________


| Returns array with all items assigned to the given weapon in given cargo container.
|gr2= Containers
{{warning|This is unoffical documentation. All Information here is as it exists in the Engine. It might not reflect the reality.}}|DESCRIPTION=
____________________________________________________________________________________________


| container '''weaponAccessoriesCargo''' [weaponId, creatorId] |SYNTAX=
|gr3= Unit Inventory


|p1= container: [[Object]] - cargo container |PARAMETER1=
|descr= Returns array with all items assigned to the given weapon in given cargo container.
|p2= [weaponId, creatorId]: [[Array]]  |PARAMETER2=
{{Feature|Warning|This is unofficial documentation. All Information here is as it exists in the Engine. It might not reflect the reality.}}
|p3= weaponId: [[Number]]  |PARAMETER3=
|p4= creatorId: [[Number]]  |PARAMETER4=


| [[Array]] [silencer, laserpointer/flashlight, optics, bipod] |RETURNVALUE=
|s1= container [[weaponAccessoriesCargo]] [weaponId, creatorId]


|p1= container: [[Object]] - cargo container


|x1= |EXAMPLE1=
|p2= weaponId: [[Number]]
____________________________________________________________________________________________


| [[weaponAccessories]], [[primaryWeaponItems]], [[handgunItems]], [[secondaryWeaponItems]], [[weaponsItems]], [[weaponsItemsCargo]], [[removeWeaponAttachmentCargo]], [[removeWeaponCargo]]  |SEEALSO=
|p3= creatorId: [[Number]]


| |MPBEHAVIOUR=  
|r1= [[Array]] - [silencer, laserpointer/flashlight, optics, bipod]
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x1= -
<dl class='command_description'>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[weaponAccessories]] [[primaryWeaponItems]] [[handgunItems]] [[secondaryWeaponItems]] [[weaponsItems]] [[weaponsItemsCargo]] [[removeWeaponAttachmentCargo]] [[removeWeaponCargo]]
</dl>
}}
 
<h3 style='display:none'>Bottom Section</h3>
[[Category:Commands Using Weapon Id|{{uc:{{PAGENAME}}}}]]
[[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}}}}]]
 
<!-- CONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 16:43, 15 August 2022

Hover & click on the images for description

Description

Description:
Returns array with all items assigned to the given weapon in given cargo container.
This is unofficial documentation. All Information here is as it exists in the Engine. It might not reflect the reality.
Groups:
Vehicle InventoryContainersUnit Inventory

Syntax

Syntax:
container weaponAccessoriesCargo [weaponId, creatorId]
Parameters:
container: Object - cargo container
weaponId: Number
creatorId: Number
Return Value:
Array - [silencer, laserpointer/flashlight, optics, bipod]

Examples

Example 1:
-

Additional Information

See also:
weaponAccessories primaryWeaponItems handgunItems secondaryWeaponItems weaponsItems weaponsItemsCargo removeWeaponAttachmentCargo removeWeaponCargo

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