Template:I BaseNPCMaker: Difference between revisions

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