From Valve Developer Community
Revision as of 14:49, 11 May 2021 by KacperZ45 (talk | contribs) (Added sprite from GMod)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Info lighting.png

info_lighting is a internal point entity available in all Source games. It can be used to change the lighting origin of a prop_static or a vehicle prop. Set the prop's lightingorigin keyvalue to point at this entity to make the prop light as if it was at the info_lighting's origin. Good for prop_static entities that are embedded in world geometry (like rocks/windows/etc). It also changes the cubemap origin, meaning the prop will show reflections from the closest cubemap to the info_lighting entity. For a prop_dynamic, use info_target.

gmod sprite
Note.png Note: This is an internal entity. When the map is compiled by VBSP it is processed and then removed: it does not exist when the map is running.



Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since <Left 4 Dead 2>)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (in all games since <Left 4 Dead 2>)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note.png Note: Try to avoid expensive operations in this function, as it may cause performance problems.

External Links

.VMF that has a prop_static using 2 lights (on/off green/red using triggers)

Interlopers Topic