Blockland Forums > Modification Help

Setting player velocity? [Resolved]

Pages: (1/4) > >>

FrogFreak:

I've got an issue concerning a player's velocity when I push a "stationary" playertype onto the player. Basically, I have a weapon that can be deployed but I'm wanting the player to be fixated to the spot that he deployed. However, if I'm moving when I deploy, the pushed playertype is applied where I can't move, but causes the player to slide infinitly in the direction he was originaly moving before deploying.

Does anyone know a script snippet to set a player's velocity?

mp7964:

Try %whateverclient.setVelocity(0,0,0);

FrogFreak:

I tried the .setvelocity but I was using ("0 0 0");.

I'll retry.

FrogFreak:

I've tried (0,0,0), that gave me a console error. I've tried (0 0 0), and I think that gave me a console error too. I tried "0 0 0" and didn't get any console error but the player still slid when deployed.

jes00:


--- Quote from: FrogFreak on February 19, 2012, 06:04:24 PM ---I've tried (0,0,0), that gave me a console error. I've tried (0 0 0), and I think that gave me a console error too. I tried "0 0 0" and didn't get any console error but the player still slid when deployed.

--- End quote ---
Because adding 0 0 0 does nothing cause it's not adding anything.

Pages: (1/4) > >>

Go to full version