Info null: Difference between revisions
Jump to navigation
Jump to search
Important:Because this entity isn't removed on compile, it still counts toward the edict limit for a split second until removed on map spawn
Code Fix:Remove the LINK_ENTITY_TO_CLASS() that connects info_null to CNullEntity in
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) (This entity ought to not be real) |
||
Line 5: | Line 5: | ||
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. | 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 [[edict]] limit for a split second until removed on map spawn. | {{ModernImportant|Because this entity isn't removed on compile, it still counts toward the [[edict]] limit for a split second until removed on map spawn | ||
{{code fix|Remove the {{cmd|LINK_ENTITY_TO_CLASS()}} that connects info_null to {{ent|CNullEntity}} in {{file|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 == | == Keyvalues == |
Revision as of 09:51, 29 June 2024
![]() |
---|
CNullEntity |
info_null
is a point entity available in all 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.



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
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
See Also
- info_target
- info_lighting - like info_null, but is removed by VBSP.
- func_null