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:Change CNullEntity to inherit from CServerOnlyEntity instead of CBaseEntity.
Workaround:If this is an issue when not shipping your own mod binaries, adding a non-existent entity (ex: info_target_null or editor_text) to the FGD and using that will prevent the entity from being networked, as it gets discarded as an unknown entity when it tries to spawn. It will say
m (Reverted edit of Akira1hahaha, changed back to last version by PhilipS) |
SirYodaJedi (talk | contribs) mNo edit summary |
||
| (52 intermediate revisions by 16 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{tabs|Info null|goldsrc=1|source=1|main=source}} | ||
= | {{CD|CNullEntity|file1=1}} | ||
{{this is a|point entity|name=info_null}} | |||
==Keyvalues== | 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. {{fixed|{{mapbase}}{{jbep3}}}}{{code fix|Change [[CNullEntity]] to inherit from [[CServerOnlyEntity]] instead of [[CBaseEntity]].}} {{workaround|If this is an issue when not shipping your own mod binaries, adding a non-existent entity (ex: {{mono|info_target_null}} or {{ent|editor_text}}) to the [[FGD]] and using that will prevent the entity from being networked, as it gets discarded as an unknown entity when it tries to spawn. It will say {{code|"Attempted to create unknown entity type info_target_null!"}} in the console, but this can be safely ignored. }} }} | |||
{{altnames|game={{mapbase|2}}|name1=[[func_null]]}} | |||
== Keyvalues == | |||
{{KV Targetname null}} | |||
== See Also == | |||
* {{ent|info_target}} - like info_null, but is not killed on map spawn. | |||
* {{ent|info_lighting}} - like info_null, but is removed by VBSP | |||
* {{ent|func_null}} - An alternative name for info_null in {{mapbase|2}} | |||
Latest revision as of 09:49, 31 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.
"Attempted to create unknown entity type info_target_null!" in the console, but this can be safely ignored. 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