Template:I BaseNPCMaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated)
No edit summary
 
Line 1: Line 1:
{{ScrollBox|title=BaseNPCMaker|
{{minititle|BaseNPCMaker}}
{{IO|Spawn|Spawns an NPC.}}
{{I|Spawn|Spawns an NPC.}}
{{IO|Toggle|Toggles the spawner enabled/disabled state.}}
{{I|Toggle|Toggles the spawner enabled/disabled state.}}
{{IO|Enable|Enables the spawner.}}
{{I|Enable|Enables the spawner.}}
{{IO|Disable|Disables the spawner.}}
{{I|Disable|Disables the spawner.}}
{{IO|AddMaxChildren|Adds to the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still wont begin spawning until it is re-enabled with the <code>Enable</code> input.|param=integer}}
{{I|AddMaxChildren|Adds to the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still wont begin spawning until it is re-enabled with the <code>Enable</code> input.|param=integer}}
{{IO|SetMaxChildren|Sets the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still won't begin spawning until it is re-enabled with the <code>Enable</code> input.|param=integer}}
{{I|SetMaxChildren|Sets the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still won't begin spawning until it is re-enabled with the <code>Enable</code> input.|param=integer}}
{{IO|SetMaxLiveChildren|Sets the maximum number of NPCs that can be alive at any one time from this spawner.|param=integer}}
{{I|SetMaxLiveChildren|Sets the maximum number of NPCs that can be alive at any one time from this spawner.|param=integer}}
{{IO|SetSpawnFrequency|Sets how often (in seconds) a new NPC will be spawned.|param=float}}
{{I|SetSpawnFrequency|Sets how often (in seconds) a new NPC will be spawned.|param=float}}
{{I Targetname}}
<noinclude>
{{I EnableDisable}}
}}<noinclude>
[[Category:Input Templates|BaseNPCMaker]]
[[Category:Input Templates|BaseNPCMaker]]
</noinclude>
</noinclude>

Latest revision as of 09:02, 13 September 2024

BaseNPCMaker:

Spawn
Spawns an NPC.
Toggle
Toggles the spawner enabled/disabled state.
Enable
Enables the spawner.
Disable
Disables the spawner.
AddMaxChildren <integer>
Adds to the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still wont begin spawning until it is re-enabled with the Enable input.
SetMaxChildren <integer>
Sets the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still won't begin spawning until it is re-enabled with the Enable input.
SetMaxLiveChildren <integer>
Sets the maximum number of NPCs that can be alive at any one time from this spawner.
SetSpawnFrequency <float>
Sets how often (in seconds) a new NPC will be spawned.