Search the Community
Showing results for tags 'trigger'.
-
I found a neat little script in my inventory I probably ripped out of something that, when dropped into an object hides the object by typing hide and brings it back when you type show. Sadly it isn't modify but I wanted to fancy it up by making a little switch for it. Now I'm a complete LSL noob so I have no idea what I'm doing but what I want it a script that when you hit the switch it simply says 'show' in local chat and when hit again says 'hide' in hopes it'll trigged the other script in the objects. I probably have to start learning LSL but I have a horrid time doing so and work much better on the fly when I have a purpose like this. So please, if anyone can help me out that'll be an amazing start to my little scripting journey. Kind regards!
-
trying to make a llListen animation script work, help?
WickedAndWild posted a topic in LSL Scripting
so im trying to get a llSay from the same wearable object in a differant script that triggers on touch from someone else to register with this script to trigger an animation on me (owner), and i cant figure out what im doing wrong, any help is appreciated, or even if someones willing to fix the mistake would be even better string productName = "Product Name"; integer channel = 9; default { changed(integer change) { if (change & (CHANGED_OWNER | CHANGED_INVENTORY)) llResetScript(); } state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if(PERMISSION_TRIGGER_ANIMATION & perm) { llListen( channel, productName, NULL_KEY, "" ); } } listen(integer chan, string name, key id, string msg) { list detail = llGetObjectDetails(id,[OBJECT_OWNER]); if(llList2Key(detail,0) != llGetOwner()) return; { if( msg == "Anim") { llStartAnimation("Anim1"); llSetTimerEvent(0.3); } else { llStopAnimation("Anim1"); } } } timer() { llSetTimerEvent(0.0); llStopAnimation("Anim1"); } } -
Hey all! I wonder if someone could help me with some scripting I want to make an animated object with a chat trigger, for instance ''/move'' So the wearer can use a chat command to make the desired object move that he or she is wearing.