trigger_endgame after killing a mob. Created 17 years ago2006-12-19 21:27:50 UTC by Kurosaki Ichigo Kurosaki Ichigo

Created 17 years ago2006-12-19 21:27:50 UTC by Kurosaki Ichigo Kurosaki Ichigo

Posted 17 years ago2006-12-19 21:27:50 UTC Post #206996
Can someone tell me how to trigger "trigger_endgame" after killing a certain amount of monsters. Currently I made a map called challenge, in the map vault, with monstermakers (zombies) and after I kill them all, I want to make the game end. Please help!! :(

EDIT:
Sorry, the entity is supposed to be trigger_endsection not endgame.
Posted 17 years ago2006-12-19 23:30:50 UTC Post #207011
It can be done by hooking a multisource to your trigger_endsection. The problem with getting it done is you can't target the multisource directly from the death property of the monsters.
One solution is, The death can trigger a hidden func_button that CAN trigger a multisource. Each grunt would trigger a different button. Each button is hooked to the multisource. When the last button triggered, the multisource is triggered and that can trigger your endsection- make sure the buttons are set to stay on when triggered (-1).
Posted 17 years ago2006-12-20 01:11:40 UTC Post #207018
could you do that with a single multithreaded multimanager? or it it just in the nature of the death trigger that you cant?
Tetsu0 Tetsu0Positive Chaos
Posted 17 years ago2006-12-20 10:27:52 UTC Post #207040
You don't know which monster will die last, so they need to be connected to a multisource somehow. If you DO know which monster dies last, then tetsu0's idea will work...
Posted 17 years ago2006-12-21 21:00:50 UTC Post #207132
Sorry I didn't add this before but how do you trigger it after killing all of the monstermakers. I'm using four atm and I want it to trigger the endsection when they're all killed.
Posted 17 years ago2006-12-21 23:29:13 UTC Post #207144
Urghh... soo dumb, i posted that last post when its at the top!!!! :confused:
Posted 17 years ago2006-12-23 10:25:16 UTC Post #207289
Also, I was never able to do this using monstermakers. I had to use the true monster_human_grunt entities or whatever.
Posted 17 years ago2006-12-23 11:31:17 UTC Post #207293
If you have a fixed number of monsters, you can use a game_counter.

http://twhl.co.za/mapvault_map.php?id=1906
You must be logged in to post a response.