Sadly there is no script function to test for the player crouching, sorry.