static Bool testCrouch=false, // For creating actor only once.
refrezz=false; // Unfreezing
static Vec VELZ; // Restores old actor's velocity
if (testCrouch==false)
{
refrezz=false;
Vec tempp=ctrl.actor.pos(),,
vel=ctrl.actor.vel(),
center=ctrl.center()+Vec(0, 0.25, 0);
VELZ=vel;
Flt radius=ctrl.radius(),
height=ctrl.height()-0.5; //ctrl.height()+0.5 for standing
ctrl.createCapsule(radius, height, tempp, ¢er).actor.pos(tempp).freezePos(true);
testCrouch=true;
}else if (!refrezz)
{
ctrl.actor.freezePos(false).vel(VELZ);
refrezz=true;
}