61
Modification Help / Making player float in air more efficently without sinking/falling down?
« on: August 03, 2012, 05:13:24 AM »
Okay guys, so, I have this ledge grab loop function over here that makes player float in air, giving the "Grabbing brick" effect.
But the problem is... It's sinking downwards. Slowly, but it still does it.
Here's the function:
Any alternatives or better values?
But the problem is... It's sinking downwards. Slowly, but it still does it.
Here's the function:
Code: [Select]
function Player::parkourGrabLoop( %this )
{
cancel( %this.parkourGrabLoop );
if ( !isObject( %this ) )
{
return;
}
if ( !%this.isGrabbing )
{
%this.changeDatablock(PlayerParkourArmor.getID());
return;
}
%this.changeDatablock(PlayerStaticArmor.getID());
%this.addVelocity( "0 0 0.64" );
%this.setVelocity( "0 0 0.64" );
%this.parkourGrabLoop = %this.schedule( 32, "parkourGrabLoop" );
}
Any alternatives or better values?