add web link to not6ecard giver
This commit is contained in:
3
SignChanger/SignChanger.sol
Normal file
3
SignChanger/SignChanger.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="SignChanger">
|
||||
<Project name="SignChanger" path="SignChanger\SignChanger.prj" active="true"/>
|
||||
</Solution>
|
||||
41
SignChanger/SignChanger/Object/Script.lsl
Normal file
41
SignChanger/SignChanger/Object/Script.lsl
Normal file
@@ -0,0 +1,41 @@
|
||||
integer count ;
|
||||
integer current = 0;
|
||||
|
||||
SetLinkTextureFast( string texture, integer face)
|
||||
{
|
||||
llSetLinkPrimitiveParamsFast(LINK_ROOT, [PRIM_TEXTURE, face, texture,<1,1,0>,<0,0,0>,0
|
||||
]);
|
||||
}
|
||||
|
||||
// PRIM_TEXTURE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
count = llGetInventoryNumber(INVENTORY_TEXTURE);
|
||||
llSetTimerEvent(5);
|
||||
}
|
||||
|
||||
on_rez(integer p) {
|
||||
llResetScript();
|
||||
}
|
||||
timer() {
|
||||
|
||||
string texturename = llGetInventoryName(INVENTORY_TEXTURE,current);
|
||||
SetLinkTextureFast(texturename,1); // do side one
|
||||
current++;
|
||||
if (current >= count)
|
||||
current = 0;
|
||||
texturename = llGetInventoryName(INVENTORY_TEXTURE,current);
|
||||
SetLinkTextureFast(texturename,2); // do side two to cache it
|
||||
|
||||
}
|
||||
|
||||
// if necessary, uncomment this, then touch a face to get the number for use with SetLinkTexture
|
||||
// touch_start(integer n) {
|
||||
// integer face = llDetectedTouchFace(0);
|
||||
// llSay(0,(string) face);
|
||||
//}
|
||||
|
||||
}
|
||||
6
SignChanger/SignChanger/SignChanger.prj
Normal file
6
SignChanger/SignChanger/SignChanger.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="SignChanger" guid="4fb2701b-ac92-4ea8-ab72-c21282933ed1">
|
||||
<Object name="Object" guid="909d860d-3c2e-4aec-920b-2b4c70b67641" active="true">
|
||||
<Script name="Script.lsl" guid="78137450-8e11-4d91-a1e0-022452fa7e4f">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user