ending level
Post Reply
Quote
Re: ending level
Posted by Kinnakor on Sun Jan 9th at 3:30pm 2005


I am trying to make it so when all the enemy npcs are dead the level ends, anyone know how i could do this, this is sp map.



Quote
Re: ending level
Posted by SirJim on Sun Jan 9th at 3:45pm 2005


Ok, first of all find your npc_maker. Create a game_end entity and name it gameover, or whatever. Go into the 'outputs' tab, and click on 'add'. In the box 'My Output Named' scroll down and find 'OnAllSpawnedDead'. In the box 'Taget Entities Named' type the name of your game_end entity, in this case, gameover. In the box 'Via This Input' scroll down and find EndGame (make sure the game_end entity exists and is linked to in the 'Target Entities Named' box, otherwise the option, EndGame wont appear). Now when all Npc's have been spawned and have died, the npc_maker should trigger the game_end entity. Hope this helped
[addsig]




Quote
Re: ending level
Posted by Kinnakor on Sun Jan 9th at 3:50pm 2005


thanks !



Quote
Re: ending level
Posted by SirJim on Sun Jan 9th at 4:05pm 2005


No prob man
[addsig]





Post Reply