allSimpleObjects: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands) |
mNo edit summary |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|arma3 |= | |||
|1.68| | |arma3 |Game name= | ||
|arg= | | |||
|eff= | | |1.68|Game Version= | ||
|arg= |Multiplayer Arguments= | |||
|eff= |Multiplayer Effects= | |||
|gr1= Object Detection |GROUP1= | |||
____________________________________________________________________________________________ | |||
| Returns array of all simple objects that belong to the listed class names. If the array of types is empty [], all simple objects are returned including those without class name.<br><br> | |||
{{Informative| | |||
*There is no inheritance in simple objects, so only exact class match is allowed. | |||
* ''className'' is not case sensitive.}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |||
| [[allSimpleObjects]] classes |SYNTAX= | |||
|p1= classes: [[Array]] of [[String]]s - classnames array. Use <tt>[]</tt> to return all simple objects |PARAMETER1= | |||
| [[Array]] - array of [[createSimpleObject|simple objects]] |RETURNVALUE= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[allSimpleObjects]] ["Box_NATO_Equip_F", "Land_CampingChair_V2_F"];</code> |EXAMPLE1= | |||
|x1= <code>[[allSimpleObjects]] ["Box_NATO_Equip_F", "Land_CampingChair_V2_F"];</code> |= | |||
|x2= <code>_allSimpleObjects = [[allSimpleObjects]] [];</code> |= | |x2= <code>_allSimpleObjects = [[allSimpleObjects]] [];</code> |EXAMPLE2= | ||
| [[createSimpleObject]], [[isSimpleObject]], [[nearestObjects]], [[nearObjectsReady]], [[nearObjects]], [[nearestObject]], [[createVehicle]] |= | |||
| [[createSimpleObject]], [[isSimpleObject]], [[nearestObjects]], [[nearObjectsReady]], [[nearObjects]], [[nearestObject]], [[createVehicle]] |SEEALSO= | |||
}} | }} | ||
Line 25: | Line 40: | ||
<!-- Appropriate categories go here --> | <!-- Appropriate categories go here --> | ||
[[Category:Arma 3: | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 14:48, 27 September 2020
Description
- Description:
- Returns array of all simple objects that belong to the listed class names. If the array of types is empty [], all simple objects are returned including those without class name.
- Groups:
- Object Detection
Syntax
- Syntax:
- allSimpleObjects classes
- Parameters:
- classes: Array of Strings - classnames array. Use [] to return all simple objects
- Return Value:
- Array - array of simple objects
Examples
- Example 1:
allSimpleObjects ["Box_NATO_Equip_F", "Land_CampingChair_V2_F"];
- Example 2:
_allSimpleObjects = allSimpleObjects [];
Additional Information
- See also:
- createSimpleObjectisSimpleObjectnearestObjectsnearObjectsReadynearObjectsnearestObjectcreateVehicle
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