21.01.2010, 23:50
Hello!
I made a pickup thats supposed to restore the player's health to 100%, set their drunk level to 0, play a sound when the pickup is picked up, and subtract $250 from their money.
The problem I have is that if you walk through the pickup, the player's health gets set to 100, the sound plays, and $250 gets taken away from their balance. The drunk level doesn't reset back to 0. In order for it to reset back to 0, you must walk through the pickup 2 times.
Can anyone help me fix this problem please?!
http://pastebin.com/m7bc626ee
I made a pickup thats supposed to restore the player's health to 100%, set their drunk level to 0, play a sound when the pickup is picked up, and subtract $250 from their money.
The problem I have is that if you walk through the pickup, the player's health gets set to 100, the sound plays, and $250 gets taken away from their balance. The drunk level doesn't reset back to 0. In order for it to reset back to 0, you must walk through the pickup 2 times.
Can anyone help me fix this problem please?!
http://pastebin.com/m7bc626ee