Template:I BaseNPCMaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{i targetname}}
{{minititle|BaseNPCMaker}}
 
{{I|Spawn|Spawns an NPC.}}
* {{I EnableDisable}}
{{I|Toggle|Toggles the spawner enabled/disabled state.}}
 
{{I|Enable|Enables the spawner.}}
* '''Spawn'''
{{I|Disable|Disables the spawner.}}
: Spawns an NPC.
{{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}}
 
{{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}}
* '''Toggle'''
{{I|SetMaxLiveChildren|Sets the maximum number of NPCs that can be alive at any one time from this spawner.|param=integer}}
: Toggles the spawner enabled/disabled state.
{{I|SetSpawnFrequency|Sets how often (in seconds) a new NPC will be spawned.|param=float}}
 
<noinclude>
* '''AddMaxChildren <integer>'''
[[Category:Input Templates|BaseNPCMaker]]
: 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.
</noinclude>
 
* '''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.

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.