uniformContainer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.04|= Game version ____________________...")
 
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(42 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
____________________________________________________________________________________________


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


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


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


| [[Object]] - cargo container or <NULL-object>  |= RETURNVALUE
|p1= unit: [[Object]]


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


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


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


| [[vestContainer]], [[backpackContainer]] |= SEEALSO
|seealso= [[vestContainer]] [[backpackContainer]] [[everyContainer]]
 
|  |= 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