I'm searching for a Duck script

Hi, has anyone of you an idea of how to do a duck script or does anyone of you know a `scale` function? Please help?

check out the script reference site

if your character is human you could animate your character to duck and use a mesh collider on him (or some sort of collider parented to the top half of the character)

Check out this tutorial, it has a lot of FPS features explained:

http://unity3d.com/support/resources/tutorials/fpstutorial.html

Oh I learned it by myself but thanks for your answers...

For the once who don't know the code for playing animations only when an if thing is right... here it is:

1.Make an animation and set "play automatically" to false. 2.Then write in you code an if function(for example:

//If the jump button is pressed
if(Input.GetButtonDown(“Jump”)){

3.Then do the follwing code and exchange the "NAME OF ANIMATION" to the name of your animation you've added

//If the jump button is pressed if(Input.GetButtonDown("Jump")){ //animate the "NAME OF ANIMATION" animation animation.Play("NAME OF ANIMATION");

}

thx a lot but I can't find the right page...[no I'm not stupid] can you please just wright out the code with which you can start an animation?

but how could I make it that it only animates when I hit shift or ctrl or so?

PS: It's no human its a fps controller so it's a capsule...