@Coolcaden26 wanted me to make another version of his guide, so, here it is!
First, you place a sentry, of course. Then, make a property, make it a number property.
Then, make a counter. Set it like this:
Make the count scope globle.
Then, when a sentry is knocked out, make it brodcast on channel “Sentry knocked out.” Then, make the starting value for the counter X, which is the amount of sentries spawned in on game start, make the property also have a starting value of X.
Then, place a wire repeater, make it repeat the pulse when the sentry is knocked out. (use wires) Then, set the delay to the respawn time. Last, when the wire repeater recives a pulse, Increment the counter.
That is all for the property, next, place a overlay. Then, set the block code to “when reciving on channel” and make the channel “Sentry knocked out.”
Last, set block code like this:
Nice! This could be important when you’re trying to eliminate sentries. Maybe add a notification part where if you have only a few left, it shows in a notification. definitely gonna use this.