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

NameRequired?Details
localclientnumRequired Which local client's entity list to use.
typeRequired 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

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).