GSC reference › Built-in

FindVolumeDecalIndexArray()

Built-in (engine) Client Gfx

Returns an array indices of a volume decal whose targetname matches the passed in string

Signature

FindVolumeDecalIndexArray(<string targetname>)

Parameters

NameRequired?Details
string targetnameRequired The targetname of the volume decal

Example (from Treyarch's docs)

vdIndexArray = FindVolumeDecalIndexArray( "foo" )

Notes

This function is potentially very expensive to call. And, since it can directly impact frame rate due to it running on the client side, you should pre-cache the results during level init and use the results when needed rather than calling at that moment.

Real uses in BO3's scripts

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