everyContainer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
Lou Montana (talk | contribs) m (Fix SQF) |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.22 | |||
|1.22 | |||
|gr1= Vehicle Inventory | |gr1= Vehicle Inventory | ||
| Returns array of all containers (uniforms, vests, backpacks) stored in given crate or vehicle. Used for accessing containers content stored in ammo box or ground holder. | |descr= Returns array of all containers (uniforms, vests, backpacks) stored in given crate or vehicle. Used for accessing containers content stored in ammo box or ground holder. | ||
| | |s1= [[everyContainer]] object | ||
|p1= object: [[Object]] - | |p1= object: [[Object]] - vehicle or ammo box | ||
|r1= [[Array]] | |||
|x1= < | |x1= <sqf> | ||
everyContainer cursorTarget; | |||
/* | |||
returns e.g | |||
]</ | [ | ||
["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d], | |||
["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d] | |||
] | |||
*/ | |||
</sqf> | |||
| [[everyBackpack]] | |seealso= [[everyBackpack]] [[uniformContainer]] [[vestContainer]] [[backpackContainer]] | ||
}} | }} | ||
{{Note | |||
|user= Yuval | |||
|timestamp= 20170720120700 | |||
|text= The returned array is in the following format: | |||
<sqf> | |||
[ | |||
[containerClassname1, containerObject1], | |||
{{ | [containerClassname2, containerObject2], | ||
// ... | |||
[containerClassnameN, containerObjectN] | |||
The returned array is in the following format:< | |||
] | ] | ||
</ | </sqf> | ||
Please do note that [[typeOf]] containerObjectN '''does not''' return containerClassnameN but rather the containerClass configured in config (usually "supplyN") | Please do note that [[typeOf]] containerObjectN '''does not''' return containerClassnameN but rather the containerClass configured in config (usually "supplyN") | ||
}} | |||
Latest revision as of 16:34, 1 November 2022
Description
- Description:
- Returns array of all containers (uniforms, vests, backpacks) stored in given crate or vehicle. Used for accessing containers content stored in ammo box or ground holder.
- Groups:
- Vehicle Inventory
Syntax
- Syntax:
- everyContainer object
- Parameters:
- object: Object - vehicle or ammo box
- Return Value:
- Array
Examples
- Example 1:
- everyContainer cursorTarget; /* returns e.g [ ["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d], ["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d] ] */
Additional Information
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
- Posted on Jul 20, 2017 - 12:07 (UTC)
-
The returned array is in the following format:
Please do note that typeOf containerObjectN does not return containerClassnameN but rather the containerClass configured in config (usually "supplyN")[ [containerClassname1, containerObject1], [containerClassname2, containerObject2], // ... [containerClassnameN, containerObjectN] ]