This article's documentation is for anything that uses the Source engine. Click here for more information.

Info null: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(-)
Line 1: Line 1:
{{tabs|Info null|goldsrc=1|source=1|main=source}}
{{tabs|Info null|goldsrc=1|source=1|main=source}}
{{CD|CNullEntity}}
{{CD|CNullEntity|file1=1}}
{{this is a|point entity|name=info_null}}
{{this is a|point entity|name=info_null}}



Revision as of 09:59, 29 June 2024

C++ Class hierarchy
CNullEntity
CBaseEntity
C++ subs.cpp

info_null is a point entity available in all Source Source games.

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.

Icon-Important.pngImportant:Because this entity isn't removed on compile, it still counts toward the edict limit for a split second until being automatically killed upon spawning.
Cpp.pngCode Fix:Remove the LINK_ENTITY_TO_CLASS() that connects info_null to CNullEntity in 🖿game/server/subs.cpp. This will cause an error to be logged in the console on map load, but the info_null will not be initialized, and therefore will never count as an edict.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

See Also