Author Topic: Checking if the player is already playing an animation?  (Read 542 times)

I was just wondering if someone could give me the ghist of what to do, and not the whole code

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.

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
« Last Edit: July 12, 2011, 04:49:48 AM by soba »

I'm pretty sure you can use isPlayerCrouching(), and ::onTrigger

I'm pretty sure you can use isPlayerCrouching(), and ::onTrigger
This.

Wouldn't I also need it for checking if the player is sitting?

Wouldn't I also need it for checking if the player is sitting?
Right.

It's just that there's more than one animation for crouching.