Blockland Forums > Suggestions & Requests
Server-Sided Speedometer (Bottom print)
RagnaTheBroedge:
--- Quote from: Port on January 24, 2014, 06:58:12 AM ---Obviously, which is why it already exists.
--- End quote ---
real helpful there bucko
Never seen one myself either, though I imagine it would be relatively simple to make?
Who Cares99:
--- Quote from: RagnaTheBroedge on January 28, 2014, 12:10:05 AM ---real helpful there bucko
Never seen one myself either, though I imagine it would be relatively simple to make?
--- End quote ---
Yeah, it would be very easy to make and extremely helpful.
Renderman:
--- Quote from: Who Cares99 on February 05, 2014, 02:44:52 PM ---Yeah, it would be very easy to make and extremely helpful.
--- End quote ---
yeah it would be kinda cool too
Who Cares99:
--- Quote from: Renderman on February 05, 2014, 03:19:45 PM ---yeah it would be kinda cool too
--- End quote ---
And it would take about thirty seconds to make
Masterlegodude:
That old Box Train vehicle has a SpeedCheck script that has a brick per second speedometer, you could use that for various vehicles
I gave it a shot, i can't seem to get it to work, but it also returns no errors in the console
--- Code: ---package VehicleSpeedometer
{
function VehicleSpeedometer(%data, %obj)
{
if(!isObject(%obj))
return;
%vehicle = %obj;
%speed = vectorLen(%obj.getVelocity());
if(!%vehicle.oldSpeed)
%vehicle.oldSpeed = %speed;
if(%speed < 0)
%speed = 0;
%vehicle.oldSpeed = %speed;
commandtoclient(%vehicle.getControllingClient(),'bottomprint', mFloor(%speed *2) @"<color:FFFF00>BPS", 1);
schedule(500,0,"VehicleSpeedometer",%data,%obj);
}
};
activatePackage(VehicleSpeedometer);
function vehicle::onadd(%data, %obj)
{
parent::onadd(%data,%obj);
VehicleSpeedometer(%data, %obj);
}
--- End code ---
I've also tried putting the function in the package, same results