vestContainer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(obsolete)
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.04


|1.04|= Game version
|gr1= Containers
____________________________________________________________________________________________
|gr2= Unit Inventory


| Returns a cargo container of a unit's vest. |= Description
|descr= Returns a cargo container of a unit's vest.
____________________________________________________________________________________________


| '''vestContainer''' unit |= Syntax
|s1= [[vestContainer]] unit


|p1= unit: [[Object]] - a soldier  |= PARAMETER1
|p1= unit: [[Object]]


| [[Object]] - cargo container or <NULL-object>  |= RETURNVALUE
|r1= [[Object]] - cargo container or [[objNull]] if ''unit'' does not wear a vest


|x1= <sqf>hint str vestContainer player; // 2df7d600# 163942: dummyweapon.p3d</sqf>


|x1= <code>[[hint]] [[str]] [[vestContainer]] [[player]]; //2df7d600# 163942: dummyweapon.p3d
|x2= <sqf>
</code>|= EXAMPLE1
hint str getMagazineCargo vestContainer player;
 
/*
|x2= <code>[[hint]] [[str]] [[getMagazineCargo]] [[vestContainer]] [[player]];</code>
returns e.g
 
<pre>[
[
[
"30Rnd_65x39_caseless_mag",
[
"16Rnd_9x21_Mag",
"30Rnd_65x39_caseless_mag",
"HandGrenade",
"16Rnd_9x21_Mag",
"APERSMine_Range_Mag",
"HandGrenade",
"SmokeShell",
"APERSMine_Range_Mag",
"SmokeShellGreen",
"SmokeShell",
"Chemlight_green"
"SmokeShellGreen",
],[
"Chemlight_green"
2,
],[
2,
2,
2,
2,
3,
2,
1,
3,
1,
1,
2
1,
2
]
]
]
]</pre>|= EXAMPLE2
*/
____________________________________________________________________________________________
</sqf>
 
| [[uniformContainer]], [[backpackContainer]], [[everyContainer]] |= SEEALSO


| |= MPBEHAVIOUR
|seealso= [[uniformContainer]] [[backpackContainer]] [[everyContainer]]
____________________________________________________________________________________________
}}
}}
<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:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:42, 3 September 2024

Hover & click on the images for description

Description

Description:
Returns a cargo container of a unit's vest.
Groups:
ContainersUnit Inventory

Syntax

Syntax:
vestContainer unit
Parameters:
unit: Object
Return Value:
Object - cargo container or objNull if unit does not wear a vest

Examples

Example 1:
hint str vestContainer player; // 2df7d600# 163942: dummyweapon.p3d
Example 2:
hint str getMagazineCargo vestContainer player; /* returns e.g [ [ "30Rnd_65x39_caseless_mag", "16Rnd_9x21_Mag", "HandGrenade", "APERSMine_Range_Mag", "SmokeShell", "SmokeShellGreen", "Chemlight_green" ],[ 2, 2, 2, 3, 1, 1, 2 ] ] */

Additional Information

See also:
uniformContainer backpackContainer everyContainer

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