Difference between revisions of "Info null"

From Valve Developer Community
Jump to: navigation, search
m (It's not internal if it actually spawns)
Line 1: Line 1:
==Entity description==
==Entity description==

Revision as of 02:21, 25 March 2018

info_null is a point entity available in all Source games.

Entity description

It is removed as soon as it spawns. It is primarily useful as a target for pointing lights at. Another possibility is to use it during map development as a way of keeping location-based notes within the VMF file, using the entity's comments box.

Because this entity isn't removed on compile, it still counts toward the entity limit until removed on map spawn.



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.