Simple death counter
monsterdeathcounter.png

Screenshots

+

Simple death counter

Author

Erty

Description

A very simple setup for triggering something (a bell sound and indicator turning green in this case) after a certain number of children (10) from a squadmaker has died.
A button is used to kill the squadmaker's children, and a trigger_numericdisplay is used to display the current number of dead children.

Essentially, the setup uses a game_counter with a Limit value set to 2 less than the squadmaker's Monster count (10 and 12 respectively, this is to have a margin for glitches and other cases when a death is not counted). We use the squadmaker's TriggerTarget and TriggerCondition to fire the game_counter each time one of the squadmaker's children dies.

Categories (tags)

edit tags

Feedback

Rate this prefab

5 / 5 (1 votes)

Comments & discussion

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License