GSC reference › Built-in

GetDamageableEntArray()

Built-in (engine) Server

Returns the entities that can be damaged. Can optionally take an origin, radius, and a flag to check 3D.

Signature

GetDamageableEntArray([origin], [radius], [checkZ])

Parameters

NameRequired?Details
originOptional origin to check against
radiusOptional max distance to origin
checkZOptional if true then check distance in 3d

Returns

entity

Example (from Treyarch's docs)

entities = GetDamageableEntArray( maxDist, true )

Real uses in BO3's scripts

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