Info null: Difference between revisions
Jump to navigation
Jump to search
Warning:This entity still counts toward the edict limit for a split second until being automatically killed upon spawning. (fixed in
)
Code Fix:Do one of the following:
SirYodaJedi (talk | contribs) mNo edit summary |
(nothing indicates it's a bug. And entity removal is not a fix) |
||
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. | ||
{{ | {{warning|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: | ||
* 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> |
Revision as of 08:51, 12 August 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.



- 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>[ 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 - 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