Blockland Forums > Modification Help

Setting player velocity? [Resolved]

Pages: << < (3/4) > >>

Jasa1:

addvelocity("0 0 0"); does nothing.
setvelocity("0 0 0"); freezes the player for a second.

FrogFreak:

I think freezing the player for a second should be enough since the stationary playertype is void of any movement control.

Maybe I'm using the wrong variable, I'll see about looking into it later. I'm currently not able to look at it as I am mobile.

mp7964:


--- Quote from: FrogFreak on February 19, 2012, 09:25:16 PM ---I think freezing the player for a second should be enough since the stationary playertype is void of any movement control.

Maybe I'm using the wrong variable, I'll see about looking into it later. I'm currently not able to look at it as I am mobile.

--- End quote ---

Use a schedule that sets the player's velocity to "0 0 0" every second.

FrogFreak:

Why?

The player can't move on his own. If I SET his velocity to 0 for all axis, why would he contimue moving?

HellsHero:


--- Quote from: FrogFreak on February 19, 2012, 09:25:16 PM ---Maybe I'm using the wrong variable, I'll see about looking into it later. I'm currently not able to look at it as I am mobile.

--- End quote ---

--- Quote from: Slicksilver on February 19, 2012, 07:37:56 PM ---%client.player.setVelocity("0 0 0");

--- End quote ---
You're calling the function incorrectly, do it like that.

Pages: << < (3/4) > >>

Go to full version