default
{
state_entry()
{
llListen(0,"","","");
llSetTimerEvent(.25);
}
listen(integer channel, string name, key id, string msg)
{
if(msg == "reset ins")
{
llResetScript();
}
}
timer()
{
vector pos = llGetPos();
float vel = llVecMag(llGetVel());
llSetText("Speed : " + (string)((integer)vel) + "\n" + "Alt : " + (string)((integer)pos.z) + "\n" + "Hdg : " + (string)llRound(get_heading(-90)) + " " + "\n \n \n", <1,1,1>, 1);
}
on_rez(integer start_param)
{
llResetScript();
}
}
I wrote this script to get Vel, altitude, and heading. Essentially I want to convert the data that's in llSetText from the the code I posted to view that information on a 3 face mesh plane. So for example if my heading was 120 it would display the texture numbers 120 where face one would be 0, face 1, would be 2, and face 2 would be 0. I want to do the same for speed. Now Altitude would be a 4 face mesh to compensate for 0000 - 4096.
I know how to script all this for hover text. Its not hard but what I don't understand how to take that information instead of using hover, make it move a Texture on a mesh Face.
Yes I know that code gives a syntax error but you get the idea.