Template:O BaseNPCMaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (ehandle)
No edit summary
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{o targetname}}
{{minititle|BaseNPCMaker}}
 
{{O|OnSpawnNPC|Fired when an NPC is spawned. The activator is the NPC, and the string is the name of the NPC.|param=ehandle}}
* '''OnSpawnNPC <[[ehandle]]>'''
{{O|OnAllSpawned|Fired when the spawned is exhausted (all children have been spawned).}}
: Fired when an NPC is spawned. The activator is the NPC, and the ehandle is the NPC.
{{O|OnAllSpawnedDead|Fired when the spawner is exhausted (all children have been spawned) and all spawned children have died.}}
 
{{O|OnAllLiveChildrenDead|Fired when all spawned children have died. This does not mean the spawned is exhausted, so a new child may be spawned any time after this (unless the maker is disabled).}}<noinclude>
* '''OnAllSpawned'''
[[Category:Output Templates|BaseNPCMaker]]
: Fired when the spawned is exhausted (all children have been spawned).
</noinclude>
 
* '''OnAllSpawnedDead'''
: Fired when the spawner is exhausted (all children have been spawned), and all spawned children have died.

Latest revision as of 07:31, 6 May 2025

BaseNPCMaker:

OnSpawnNPC <targetname*>
Fired when an NPC is spawned. The activator is the NPC, and the string is the name of the NPC.
OnAllSpawned
Fired when the spawned is exhausted (all children have been spawned).
OnAllSpawnedDead
Fired when the spawner is exhausted (all children have been spawned) and all spawned children have died.
OnAllLiveChildrenDead
Fired when all spawned children have died. This does not mean the spawned is exhausted, so a new child may be spawned any time after this (unless the maker is disabled).