patmamu Sandalwood
Registered User
Join date: 1 Dec 2008
Posts: 19
|
09-30-2009 13:26
Hello I am looking for a full perm script that will cycle 15 textures based off a link_message call.
Its for a counter so basically the way I am working it "for better or worse" is the root listens for a command then sends a message to the child prim to change the number from 0 to 14. I need the script in the child prim to cycle through textures in order one step every time it hears the message and when hearing the command to reset to go back to to first texture. If you could provide the script or tell me where to get it I would greatly appreciate it.
Just drop a line either here or in world to patmamu Sandalwood thanks.
|
Steven Broderick
Scripter / Builder
Join date: 14 Sep 2008
Posts: 20
|
Child Prim Script.
09-30-2009 13:46
Here is a script that should work in the child prim. Let me know if there are any problems. From: someone integer counter = 0; default { on_rez(integer start_param) { llResetScript(); } link_message(integer sender_number, integer number, string message, key id) { if(message == "flip"  { if(++counter > 14) counter = 0; llSetTexture((string)counter,ALL_SIDES); } else if (message = "reset"  { llSetTexture((string)(counter = 0), ALL_SIDES); } } }
|