It's not that common for a unit to actually reach 0 energy. Usually you have like 3 or 5 or so remaining, and since energy is a real value (like s3rius said) you could even have 0.2 and your trigger wouldn't fire. You should just check for < 10 or something, and you'd most likely get it to go off more often. If that was your problem.
Though I'm guessing the sound would go off as you regen as well, with the event you're using. So a sound would be played when you hit, for example, 5 energy, and then again as you regen up to 6, and again at 7 etc. Maybe some kind of on-screen effect might be a better way to display low energy?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@Darkmatter42: Go
It's not that common for a unit to actually reach 0 energy. Usually you have like 3 or 5 or so remaining, and since energy is a real value (like s3rius said) you could even have 0.2 and your trigger wouldn't fire. You should just check for < 10 or something, and you'd most likely get it to go off more often. If that was your problem.
Though I'm guessing the sound would go off as you regen as well, with the event you're using. So a sound would be played when you hit, for example, 5 energy, and then again as you regen up to 6, and again at 7 etc. Maybe some kind of on-screen effect might be a better way to display low energy?