Info null: Difference between revisions
Jump to navigation
Jump to search
Code Fix:Do one of the following:
Workaround:If this is an issue when not shipping your own mod binaries,
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) (Might be necessary for over-k TF2) Tag: Reverted |
||
Line 8: | Line 8: | ||
* Change <tt>info_null</tt> to inherit from [[CServerOnlyEntity]] instead of [[CBaseEntity]] | * 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> | * Add the following line to the [[CNullEntity]] class:<source lang=c>CNullEntity() : CBaseEntity(true){ }</source> | ||
}} }} | }} | ||
{{workaround|If this is an issue when not shipping your own mod binaries, }} | |||
{{altnames|game={{mapbase|2}}|name1=[[func_null]]}} | {{altnames|game={{mapbase|2}}|name1=[[func_null]]}} | ||
Revision as of 12:21, 14 March 2025
![]() |
---|
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.
{{warning|This entity still counts toward the edict limit for a split second until being automatically killed upon spawning. (fixed in )

- Change info_null to inherit from CServerOnlyEntity instead of CBaseEntity
- Add the following line to the CNullEntity class:
CNullEntity() : CBaseEntity(true){ }

Keyvalues
- Name (targetname) <string>
- Name of this entity. Can be used by compile tools as a spotlight target or a prop_static's lighting origin.
Also displayed in Hammer's 2D views and Entity Report.
See Also
- info_target - like info_null, but is not killed on map spawn.
- info_lighting - like info_null, but is removed by VBSP
- func_null - An alternative name for info_null in
Mapbase