GSC reference › Built-in
SetLutScriptIndex()
Built-in (engine)
Client
Gfx
Set lut index from script.
Signature
SetLutScriptIndex(<localClientNum>, <lut index>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | the local client |
| lut index | Required | The lut index |
Example (from Treyarch's docs)
SetLutScriptIndex( lcn, 2 )
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
- SetUkkoScriptIndex()Set ukko index from script.
- FindStaticModelIndexArray()Returns an array indices of a static model whose name matches the passed in string
- FindVolumeDecalIndexArray()Returns an array indices of a volume decal whose targetname matches the passed in string
- FindStaticModelIndex()Returns an index of a static model whose origin matches the passed in position
- GetWorldFogScriptID()Current active .fsi fog volumes script identity value -1 = global volume.
- MapMaterialIndex()Maps the material to an index
- SetLutVolumeActiveBank()Set lut volumes active bank bit mask.
- AnimScripted()Runs an animscript on an entity.
- ArrayRemoveIndex()Remove a value from an array at a given index
- StopAnimScripted()Halts animscript on this entity.
- GetItemIndexFromRef()Returns the item index for the specified item reference
- SetClientScriptMainMenu()Sets g_scriptMainMenu dvar only on this client
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).