Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I play a sound when the player dies?
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: How can I play a sound when the player dies?

I'm not really sure, I will test this out myself later tonight. But looking at the Frictional Wiki. You could
probally use this
float GetPlayerHealth();
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.

10-16-2011, 05:22 PM
Find


Messages In This Thread
RE: How can I play a sound when the player dies? - by Rapture - 10-16-2011, 05:22 PM



Users browsing this thread: 1 Guest(s)