This is a collection of assets


Two simple scripts to play looping sounds at various health levels. Three sounds and example map included. Well-commented for ease of use and editing.

One plays a single sound, looping by default. (low_health_warning.lua) With this script, you simply change the health number at which you want the sound to begin.

The other plays three different sounds by default, each within a different health range. (low_health_warning_layered.lua) With this script, you can set, add, or remove multiple health and sound intervals.

These can be fairly easily edited for other uses or to add more sounds, change the health intervals, etc. They do not replace the default heartbeat sound! That sound can be replaced, removed, or left alone. It's up to the user to find and use their preferred method but I do recommend that you disable it somehow.

Attach the script to a dynamic entity, set to always active, and place your sounds in the slots. Very simple.

These are very useful as they are, but an experienced scripter could probably improve these quite a bit. The ability to edit your desired sounds to affect looping points and add stretches of silence will allow you even more options.

PLEASE NOTE:These are 3D Sound versions! This means that the sound will fade in and out according to your distance from the entity it is attached to. (A Non-3D version will be added to this purchase if and when I can get one to work how I want it to.) If you have a large level, this can be a problem. If so, you can place the script in various areas of the map to reduce the amount of volume increase/decrease. If you have a very large map, test this method and find a setup that works for you. It is not a perfect solution, but it does work, and the swelling volumes with this method may actually help to add a little variety to your map's sound. 


code script lua heal hurt harm music sound heartbeat health audio

Product Details

Artist: M Stockton
Category: GameGuru Scripts
Sub Category: Misc
Number of Objects: 2
Number of Sales: 6

Engine Support

The artist has indicated the following engines are supported, however with modifications most products will work in any engine.

GameGuru Yes

File Formats

The artist has indicated the following file formats are included.

LUA .lua
WAV .wav


No comments yet

You must Login or Register to leave comments.

Related Products