GSC reference › Built-in
GetEntArrayByType()
Built-in (engine)
Client
Gets an array of entities that have the given the type of the entity ( for example, ET_MISSILE )
Signature
GetEntArrayByType(<localclientnum>, <type>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localclientnum | Required | Which local client's entity list to use. |
| type | Required | Type of the entity. Look into shared.gsh for the ET enum |
Returns
entity
Example (from Treyarch's docs)
grenades = GetEntArray( 0, ET_MISSILE )
Real uses in BO3's scripts
Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.
Related built-ins
- GetEntArray()Looks up entities by key and name and a return an array of the matched entities
- GetAIArchetypeArray()Returns an array of the AI for the given archetype and optionally given team
- GetEntArrayFromArray()Searches given array entities by key and name and a return an array of the matched entities
- GetDamageableEntArray()Returns the entities that can be damaged.
- GetCurrentEventTypeName()Gets the type string name from the current event.
- getdynentarray()Get a dynent array with the specified targetname
- GetEntityType()Get the type of entity
- GetMovementType()Returns the movement type for the entity
- GetTargetLockEntityArray()Get locked target
- SetEntBeastModeIconType()Sets the beast mode icon shown for a particular entity
- GetCurrentEventType()Gets the type from the current event.
- GetGroundEntType()Get the entity type of the 'ground' that the actor is on.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).