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
m (Being an edict instead of server-only is a bug)
mNo edit summary
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.


{{bug|This entity still counts toward the [[edict]] limit for a split second until being automatically [[kill]]ed upon spawning. {{in|text=fixed in|{{jbep3}}}}{{code fix|Remove the {{ent|LINK_ENTITY_TO_CLASS()}} for <tt>info_null</tt>, or change <tt>info_null</tt> to inherit from [[CServerOnlyEntity]] instead of [[CBaseEntity]].}} }}
{{bug|This entity still counts toward the [[edict]] limit for a split second until being automatically [[kill]]ed upon spawning. {{in|text=fixed in|{{jbep3}}}}{{code fix|Do one of the following:
* Remove the {{ent|LINK_ENTITY_TO_CLASS()}} for <tt>info_null</tt>
* Change <tt>info_null</tt> to inherit from [[CServerOnlyEntity]] instead of [[CBaseEntity]]
* Add the following line to the [[CNullEntity]] class:<source lang=c>CNullEntity() : CBaseEntity(true){ }</source>
}} }}
{{altnames|game={{mapbase|2}}|name1=[[func_null]]}}
{{altnames|game={{mapbase|2}}|name1=[[func_null]]}}



Revision as of 08:47, 12 August 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-Bug.pngBug:This entity still counts toward the edict limit for a split second until being automatically killed upon spawning. (fixed in Jabroni Brawl: Episode 3)
Cpp.pngCode Fix:Do one of the following:
  [todo tested in ?]
AltNames.pngAltNames: In Mapbase Mapbase, this entity is also tied to func_null.

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