weaponAccessoriesCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Commands Using Weapon Id" to "[[Category:Command Group: Weapon Id")
m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ")
(27 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 unofficial 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
|p2= [weaponId, creatorId]: [[Array]]
|p3= weaponId: [[Number]]
|p4= creatorId: [[Number]]


|x1= |EXAMPLE1=
|r1= [[Array]] -  [silencer, laserpointer/flashlight, optics, bipod]
____________________________________________________________________________________________


| [[weaponAccessories]], [[primaryWeaponItems]], [[handgunItems]], [[secondaryWeaponItems]], [[weaponsItems]], [[weaponsItemsCargo]], [[removeWeaponAttachmentCargo]], [[removeWeaponCargo]]  |SEEALSO=  
|x1= -


| |MPBEHAVIOUR=  
|seealso= [[weaponAccessories]], [[primaryWeaponItems]], [[handgunItems]], [[secondaryWeaponItems]], [[weaponsItems]], [[weaponsItemsCargo]], [[removeWeaponAttachmentCargo]], [[removeWeaponCargo]]
____________________________________________________________________________________________
}}
}}
<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:Command Group: 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 19:11, 20 June 2021

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, creatorId]: Array
weaponId: Number
creatorId: Number
Return Value:
Array - [silencer, laserpointer/flashlight, optics, bipod]

Examples

Example 1:
-

Additional Information

See also:
weaponAccessoriesprimaryWeaponItemshandgunItemssecondaryWeaponItemsweaponsItemsweaponsItemsCargoremoveWeaponAttachmentCargoremoveWeaponCargo

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