GSC reference › Built-in
SetInfraredVisionSet()
Built-in (engine)
Client
Called on: entity
Set the vision when using infrared
Signature
<entity> SetInfraredVisionSet(<visionNameInfrared>)
Called on an entity: entity SetInfraredVisionSet(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| visionNameInfrared | Required | name of the vision set |
Example (from Treyarch's docs)
entity SetInfraredVisionSet("visionName") Real uses in BO3's scripts
Called 2 times in the decompiled scripts. A few, zombies first:
- scripts/mp/_callbacks.csc, line 115
player setinfraredvisionset(level.infraredvisionset); - scripts/cp/_callbacks.csc, line 111
player setinfraredvisionset(level.infraredvisionset);
Related built-ins
- SetInfraredVision()Switches using the infrared vision (infrared visionset and thermal characters)
- VisionSetNaked()Set the vision and its duration
- GetVisionSetNaked()Gets players' naked vision.
- SetDrawInfrared()Draw this entity using infrared material when using infrared scope.
- UseServerVisionset()Switches using the server supplied (via SetVisionSetForPlayer()) visionset.
- VisionSetLastStand()Sets players' laststand vision.
- SetVisionSetForPlayer()Specify the server override visionset and the transition time into it.
- VisionSetLastStandLerp()Sets players' last stand vision.
- VisionSetNakedLerp()Sets players' naked vision.
- GadgetSetInfrared()Enables or disables infrared for the gadget
- OED_NightVision_Reset()Reset nightvision for entity
- OED_NightVision_SetTextureLevel()Set the night vision texture level for the entity
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).