| Blockland Forums > Modification Help |
| Setting player velocity? [Resolved] |
| << < (2/4) > >> |
| FrogFreak:
SET Velocity, not add. |
| HellsHero:
--- 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 --- That's because you would need a constant loop setting the players to no velocity so they couldn't move. setVelocity sets the velocity, but that doesn't mean it can't go back down or go up. |
| Slicksilver:
..What? It's Player::setVelocity(vector string) e.g. findClientByName("Slicksilver").player.setVelocity("10 0 10"); |
| FrogFreak:
--- Quote from: HellsHero on February 19, 2012, 07:32:24 PM ---That's because you would need a constant loop setting the players to no velocity so they couldn't move. setVelocity sets the velocity, but that doesn't mean it can't go back down or go up. --- End quote --- Maybe I need to calrify just in case. The player's datablock is changed to a playertype that is incapable of movement. All I need is his velocity to be set to 0 in all axis just once, after that, he should be stationary for the rest of the time. |
| Swollow:
setVelocity("0 0 0"); is correct its probably a glitch in your script |
| Navigation |
| Message Index |
| Next page |
| Previous page |