10-16-2011, 01:02 PM
10-16-2011, 05:22 PM
I'm not really sure, I will test this out myself later tonight. But looking at the Frictional Wiki. You could
probally use this with conjunction of a timer that fires every 1 second.
So make a If statement that if the player's health drops below 10 (I think that's the lowest health you could possibly go to if you fall from heights) You would play the sound.
probally use this
Code:
float GetPlayerHealth();
So make a If statement that if the player's health drops below 10 (I think that's the lowest health you could possibly go to if you fall from heights) You would play the sound.
10-16-2011, 06:03 PM
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
asCallback - the function to call when the player dies/respawns
Just put the sound inside the callback. I'm not sure but the sound should play right after death, just test if it works like you want...
asCallback - the function to call when the player dies/respawns
Just put the sound inside the callback. I'm not sure but the sound should play right after death, just test if it works like you want...