Template:O 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|OnSpawnNPC|Fired when an NPC is spawned. The activator is the NPC, and the string is the name of the NPC.|param=string}}
{{O|OnSpawnNPC|Fired when an NPC is spawned. The activator is the NPC, and the string is the name of the NPC.|param=string}}
{{IO|OnAllSpawned|Fired when the spawned is exhausted (all children have been spawned).}}
{{O|OnAllSpawned|Fired when the spawned is exhausted (all children have been spawned).}}
{{IO|OnAllSpawnedDead|Fired when the spawner is exhausted (all children have been spawned) and all spawned children have died.}}
{{O|OnAllSpawnedDead|Fired when the spawner is exhausted (all children have been spawned) and all spawned children have died.}}
{{IO|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).}}
{{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>
{{O Targetname}}
}}<noinclude>
[[Category:Output Templates|BaseNPCMaker]]
[[Category:Output Templates|BaseNPCMaker]]
</noinclude>
</noinclude>

Revision as of 09:03, 13 September 2024

BaseNPCMaker:

OnSpawnNPC <string>
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).