entities: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(format)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns a list of entities with given type.  |= Description
| Returns a list of all dead or alive entities with given type.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 17:




|x1= <code>entities "Car"</code>|= EXAMPLE1  
|x1= <code>_allcars = [[entities]] "Car";</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 20:25, 30 July 2014

Hover & click on the images for description

Description

Description:
Returns a list of all dead or alive entities with given type.
Groups:
Uncategorised

Syntax

Syntax:
entities type
Parameters:
type: String
Return Value:
Array

Examples

Example 1:
_allcars = entities "Car";

Additional Information

See also:
nearEntitiesallUnitsvehiclesagents

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

Notes

Posted on Mar 27, 2014 - 20:26
ffur2007slx2_5
In ArmA3 ver 1.14 type (string) can be any children class under configfile >> "CfgVehicles". e.g.entities "All"; //or entities "CAManBase"; etc.

Bottom Section