Problems with an if statements in draw actor
Posted: Tue Jul 31, 2012 4:42 am
How can I have an if statement in draw actor that specifies a distance, which should play a sound if the statement is true. I want the sound to only play once, but I want the distance to still be the thing that causes the sound to play. This is the same thing for me wanting an if statement in draw actor which should change an animation, but I don't want the animation to constantly be changing. How can I have some code that is only run once by an if statement that is constantly checking in draw actor?