//This script requires an 8-faced mesh panel to work
//as a HUD. Place the script in the 8-faced mesh
//item to communicate with the Outfit Retexturing
//Script.
//You can find 8-faced mesh panels on MP at...
//https://marketplace.secondlife.com/p/Free-full-perm-8-face-mesh-panel/4172861
//https://marketplace.secondlife.com/p/8-Face-Mesh-Display-Panel-Plus-other-simple-meshes/3575768
//https://marketplace.secondlife.com/p/Parz-8-face-Mesh-Plane/6777430
//https://marketplace.secondlife.com/p/8-Face-Panels-Mesh-Multiple-Faces-Fullperm/5224017
//If you're uncertain how your panel's faces are
//numbered, use the script at
//http://wiki.secondlife.com/wiki/LlDetectedTouchFace
integer menuChan;
default
{
state_entry()
{
string uniq_chan = (string)llGetOwner();
//string uniq_chan = (string)llGetCreator();
//use llGetCreator() for events or stage shows where you will be
//changing several costumes at once. Perfect for NPCs or bots.
uniq_chan = "0x" + (llGetSubString(uniq_chan, 0, 3));
menuChan = 13 + (integer)uniq_chan;
}
on_rez(integer start_param)
{
llResetScript();
}
changed(integer change)
{
if (change & CHANGED_OWNER) llResetScript();
}
touch_start(integer num_detected)
{
if (llDetectedTouchFace(0) == 0) llSay (menuChan, "TF00");
else if (llDetectedTouchFace(0) == 1) llSay (menuChan, "TF01");
else if (llDetectedTouchFace(0) == 2) llSay (menuChan, "TF02");
else if (llDetectedTouchFace(0) == 3) llSay (menuChan, "TF03");
else if (llDetectedTouchFace(0) == 4) llSay (menuChan, "TF04");
else if (llDetectedTouchFace(0) == 5) llSay (menuChan, "TF05");
else if (llDetectedTouchFace(0) == 6) llSay (menuChan, "TF06");
else if (llDetectedTouchFace(0) == 7) llSay (menuChan, "TF07");
}
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎