uniformContainer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|gr1= Containers |GROUP1=" to "|gr1= Unit Inventory |GROUP1=")
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(31 intermediate revisions by 2 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


|gr1 = Containers |GROUP1=
|gr2= Unit Inventory


|descr= Returns a cargo container of a unit's uniform.


|s1= [[uniformContainer]] unit


|gr1= Unit Inventory |GROUP1=
|p1= unit: [[Object]]
____________________________________________________________________________________________


| Returns a cargo container of a unit's uniform. |DESCRIPTION=
|r1= [[Object]] - cargo container, [[objNull]] if ''unit'' does not wear any uniform/clothing
____________________________________________________________________________________________


| [[uniformContainer]] unit |SYNTAX=
|x1= <sqf>hint str uniformContainer player; //2df7dd00# 163941: dummyweapon.p3d</sqf>


|p1= unit: [[Object]] - a soldier  |PARAMETER1=
|x2= <sqf>
hint str getMagazineCargo uniformContainer player;
/*
returns e.g
[
["30Rnd_65x39_caseless_mag"],
[3]
]
*/
</sqf>


| [[Object]] - cargo container or <NULL-object>  |RETURNVALUE=
|seealso= [[vestContainer]] [[backpackContainer]] [[everyContainer]]
 
 
|x1= <code>[[hint]] [[str]] [[uniformContainer]] [[player]]; //2df7dd00# 163941: dummyweapon.p3d</code>|EXAMPLE1=
 
|x2= <code>[[hint]] [[str]] [[getMagazineCargo]] [[uniformContainer]] [[player]];</code>
 
<pre>[
["30Rnd_65x39_caseless_mag"],
[3]
]</pre>|EXAMPLE2=  
____________________________________________________________________________________________
 
| [[vestContainer]], [[backpackContainer]], [[everyContainer]]|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: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 uniform.
Groups:
ContainersUnit Inventory

Syntax

Syntax:
uniformContainer unit
Parameters:
unit: Object
Return Value:
Object - cargo container, objNull if unit does not wear any uniform/clothing

Examples

Example 1:
hint str uniformContainer player; //2df7dd00# 163941: dummyweapon.p3d
Example 2:
hint str getMagazineCargo uniformContainer player; /* returns e.g [ ["30Rnd_65x39_caseless_mag"], [3] ] */

Additional Information

See also:
vestContainer 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