GSC reference › Built-in

GetEntArray()

Built-in (engine) Server

Looks up entities by key and name and a return an array of the matched entities

Signature

GetEntArray([name], [key], [ignore spawners])

Parameters

NameRequired?Details
nameOptional name to search for
keyOptional key that name goes with
ignore spawnersOptional if true then you won't get a spawner back

Returns

entity

Example (from Treyarch's docs)

spawners = GetEntArray( "doorguy1", "targetname" )

Real uses in BO3's scripts

Called 1,419 times in the decompiled scripts. A few, zombies first:

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