Template:O BaseNPCMaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(string, not ehandle)
(Updated)
Line 1: Line 1:
{{ScrollBox|title=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}}
{{IO|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.}}
{{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 Targetname}}
{{O Targetname}}
 
}}<noinclude>
* '''OnSpawnNPC <[[targetname]]>'''
[[Category:Output Templates|BaseNPCMaker]]
: Fired when an NPC is spawned. The activator is the NPC, and the targetname is of the NPC.
</noinclude>
 
* '''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.
 
* '''{{EP1 add|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).

Revision as of 07:26, 27 July 2011

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