How to remove velocity/speed kept from before saving position in cod jumper? I slide if I am moving when I load position.
-
I am using this code to load and save position. How can I make sure I do not slide when I load position if I am moving when I press useButtonPressed() ?
if(self meleeButtonPressed() && self isOnGround()) { self.save1pos = self.origin; self.save1ang = self getPlayerAngles(); self iPrintLn("Position 1 Saved."); wait 0.75; } else if(self useButtonPressed() && self isOnGround()) { // load position 1. self setOrigin(self.save1pos); self setPlayerAngles(self.save1ang); self iPrintLn("Position 1 Loaded."); wait 0.75; } -
add a call to SetVelocity.
self setVelocity( 0, 0, 0 );
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login