Info null (GoldSrc): 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.
Warning:This entity still counts toward the edict limit for a split second until being automatically killed upon spawning.  Workaround:If this is an issue, do one of the following:
Workaround:If this is an issue, do one of the following:
 
		
	
| No edit summary | SirYodaJedi (talk | contribs)  No edit summary | ||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{tabs|Info null|goldsrc=1|source=1|main=source}} | ||
| {{ | {{CD|CNullEntity|goldsrc=1}} | ||
| {{this is a|point entity|name=info_null|engine=GoldSrc}} It will automatically remove itself on spawn. Primarily used as a [[Light spot (GoldSrc)|spotlight]] target. | |||
| {{warning|This entity still counts toward the [[edict]] limit for a split second until being automatically [[kill]]ed upon spawning. {{workaround|If this is an issue, do one of the following: | |||
| * If this is a multiplayer map, use spawnflag 2048 ("Not in Deathmatch"). This spawnflag is parsed by the engine before the entity has a chance to spawn. | |||
| * If this is a singleplayer map, add a non-existent entity (ex: {{mono|info_target_null}}) to the [[FGD]] and use that instead. This prevents the entity from being networked, as it gets discarded as an unknown entity when it tries to spawn.}} }} | |||
| == Key Values == | == Key Values == | ||
| {{Hl1 kv targetname}} | {{Hl1 kv targetname}} | ||
| == Flags == | |||
| {{hl1 Appearflags|never in deathmatch=1}} | |||
| [[Category:Entities]] | [[Category:Entities]] | ||
| [[Category:Half-Life]] | [[Category:Half-Life]] | ||
| [[Category:Half-Life Entities]] | [[Category:Half-Life Entities]] | ||
Latest revision as of 10:58, 27 October 2025
|  Class hierarchy | 
|---|
| CNullEntity | 
|  subs.cpp | 
info_null  is a   point entity  available in all  GoldSrc games. It will automatically remove itself on spawn. Primarily used as a spotlight target.
 GoldSrc games. It will automatically remove itself on spawn. Primarily used as a spotlight target.
 Warning:This entity still counts toward the edict limit for a split second until being automatically killed upon spawning.
Warning:This entity still counts toward the edict limit for a split second until being automatically killed upon spawning.  Workaround:If this is an issue, do one of the following:
Workaround:If this is an issue, do one of the following:
- If this is a multiplayer map, use spawnflag 2048 ("Not in Deathmatch"). This spawnflag is parsed by the engine before the entity has a chance to spawn.
- If this is a singleplayer map, add a non-existent entity (ex: info_target_null) to the FGD and use that instead. This prevents the entity from being networked, as it gets discarded as an unknown entity when it tries to spawn.
Key Values
- Name (targetname) <string>
- The targetname that other entities refer to this entity by.
Flags
- Not In Deathmatch : [2048]
- Prevent this entity from attempting to spawn when deathmatch(multiplayer) is enabled. Tip:This is intercepted before the entity spawns (hardcoded in the engine), and as such prevents it from ever contributing to the edict limit. As such, it may be desirable to set this on entities that delete themselves in multiplayer anyway, such as monsters and info_null, to prevent them from contributing towards map spawn edict limit crashes on maps with lots of entities. Tip:This is intercepted before the entity spawns (hardcoded in the engine), and as such prevents it from ever contributing to the edict limit. As such, it may be desirable to set this on entities that delete themselves in multiplayer anyway, such as monsters and info_null, to prevent them from contributing towards map spawn edict limit crashes on maps with lots of entities.
