Blockland Forums > Modification Help
Tampering with Vehicle Speed
(1/2) > >>
TheRealMint:
Is there a way that I can adjust the speed of vehicles without messing with their datablocks? I want to be able to change their speeds based on a couple variables. I tried redefining WheeledVehicle::setVelocity, but I found out that that function is not called when a player is driving a vehicle. What function is called when a player drives a vehicle?
-Jetz-:
There is no such function. All of that is handled in the engine. The best way is definitely through the datablock. Why don't you want to do that? What are you trying to do?
TheRealMint:

--- Quote from: -Jetz- on April 12, 2012, 09:07:28 AM ---There is no such function. All of that is handled in the engine. The best way is definitely through the datablock. Why don't you want to do that? What are you trying to do?

--- End quote ---
I want to multiply the speed of a vehicle by a variable that changes throughout gameplay. I don't want to change the data blocks, because I want it to work with all vehicles without any extra modification. I guess that this is impossible, though. Thanks for your reply.
Kalphiter:
Welcome to Torque.

There is no support for this.
Fluff-is-back:
The only way to do this sort of thing would be to change the datablock, then transmitDatablocks(), however this can crash some clients.
Navigation
Message Index
Next page

Go to full version