Blockland Forums > Modification Help
Checking if the player is already playing an animation?
soba:
I was just wondering if someone could give me the ghist of what to do, and not the whole code
Daenth:
I don't believe this is possible...
the only way would to assign a variable to the player when they initiate the animation.
Please, correct me if I'm wrong, this may be helpful to me as well in the future.
soba:
I planned on using it to check if the player was, lets say crouching, and he trys to /sit, and it gives him an error and says *You cannot sit and crouch at the same time!* and vice versa, also have an RTB pref to disable it so you can still do the hands in the air thing if you wanted tho
oh, and what you said still lies under what I want to know, how to detect if the player is playing the animation already
Chrono:
I'm pretty sure you can use isPlayerCrouching(), and ::onTrigger
Destiny/Zack0Wack0:
--- Quote from: Chrono on July 12, 2011, 05:22:19 AM ---I'm pretty sure you can use isPlayerCrouching(), and ::onTrigger
--- End quote ---
This.