Blockland Forums > Suggestions & Requests
SetPlayerSpeed
Uxie:
--- Quote from: chilmans on November 04, 2009, 10:02:56 AM ---I can make a new playertype, with an RTB preference to change his speed, but it would require a restart of the server
--- End quote ---
I can't use a playertype. That's why wan't SetPlayerSpeed.
Kalphiter:
--- Quote from: Uxie on November 04, 2009, 06:07:03 PM ---I can't use a playertype. That's why wan't SetPlayerSpeed.
--- End quote ---
It is the only way.
Truce:
--- Quote from: Kalphiter on November 04, 2009, 06:54:37 PM ---It is the only way.
--- End quote ---
--- Quote from: Truce on November 03, 2009, 09:44:00 PM ---
--- Quote from: Truce on October 31, 2009, 03:56:02 PM ---No, each player would get their own datablock, and you can change the speeds / jumpForce of their datablocks individually. They'd be re-used if someone left and a new person joined. It worked fine; no bugs.
--- End quote ---
--- End quote ---
Uxie:
I don't know what you don't like about SetPlayerSpeed.
Kalphiter:
--- Quote from: Truce on November 04, 2009, 07:13:48 PM ---
--- Quote from: Kalphiter on November 04, 2009, 06:54:37 PM ---It is the only way.
--- End quote ---
--- Quote from: Truce on November 03, 2009, 09:44:00 PM ---
--- Quote from: Truce on October 31, 2009, 03:56:02 PM ---No, each player would get their own datablock, and you can change the speeds / jumpForce of their datablocks individually. They'd be re-used if someone left and a new person joined. It worked fine; no bugs.
--- End quote ---
--- End quote ---
--- End quote ---
--- Quote from: Ephialtes on November 04, 2009, 11:20:03 AM ---You shouldn't be transmitting datablocks on-the-fly in a game. It's not how that command is meant to work at all.
The correct way to d o this is to change the max wheel speed either directly in the vehicle code, or in a script that is executed when the server starts up and before any client connects.
--- End quote ---