Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

displaying vehicle speed in hovering text

Gus Udal
Registered User
Join date: 4 Dec 2005
Posts: 18
04-23-2006 08:39
How do I modify this line to display the numeric variable, speed, on my boat script?
llSetText("Speed", <0.0,1.0,0.0>, 1);
I want it to read, Speed and then display the actual speed I am traveling. I realize this is probably simple, but I am simple when it comes to scripting. Thanks
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
04-23-2006 09:01
CODE

llSetText("Speed: "+(string)(llVecMag(llGetVel())) + " m/s", <0.0,1.0,0.0>, 1);
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey