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?
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#3
RE: How can I play a sound when the player dies?

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...

(This post was last modified: 10-16-2011, 06:03 PM by Khyrpa.)
10-16-2011, 06:03 PM
Find


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



Users browsing this thread: 1 Guest(s)