uniformContainer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(27 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


|gr2= Unit Inventory |GROUP2=
|descr= Returns a cargo container of a unit's uniform.
____________________________________________________________________________________________


| Returns a cargo container of a unit's uniform. |DESCRIPTION=
|s1= [[uniformContainer]] unit
____________________________________________________________________________________________


| [[uniformContainer]] unit |SYNTAX=
|p1= unit: [[Object]]


|p1= unit: [[Object]] - a soldier  |PARAMETER1=
|r1= [[Object]] - cargo container, [[objNull]] if ''unit'' does not wear any uniform/clothing


| [[Object]] - cargo container or <NULL-object> |RETURNVALUE=
|x1= <sqf>hint str uniformContainer player; //2df7dd00# 163941: dummyweapon.p3d</sqf>


|x2= <sqf>
hint str getMagazineCargo uniformContainer player;
/*
returns e.g
[
["30Rnd_65x39_caseless_mag"],
[3]
]
*/
</sqf>


|x1= <code>[[hint]] [[str]] [[uniformContainer]] [[player]]; //2df7dd00# 163941: dummyweapon.p3d</code>|EXAMPLE1=
|seealso= [[vestContainer]] [[backpackContainer]] [[everyContainer]]
 
|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>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[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