Difference between revisions of "uniformContainer"

From Bohemia Interactive Community
Jump to navigation Jump to search
(obsolete link)
m (Some wiki formatting)
 
(23 intermediate revisions by 3 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= <code>[[hint]] [[str]] [[uniformContainer]] [[player]]; //2df7dd00# 163941: dummyweapon.p3d</code>
</code>|= EXAMPLE1
 
  
|x2= <code>[[hint]] [[str]] [[getMagazineCargo]] [[uniformContainer]] [[player]];</code>
+
|x2= <code>[[hint]] [[str]] [[getMagazineCargo]] [[uniformContainer]] [[player]];
 +
{{codecomment|/*
 +
returns e.g
 +
[
 +
["30Rnd_65x39_caseless_mag"],
 +
[3]
 +
]
 +
<nowiki/>*/}}</code>
  
<pre>[
+
|seealso= [[vestContainer]], [[backpackContainer]], [[everyContainer]]
["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:46, 12 June 2021

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:
vestContainerbackpackContainereveryContainer

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