Search the Community
Showing results for tags 'llgetowner'.
-
I'm pretty new to scripting, but have managed to solve some issues... Learning bit by bit. I have a situation where an object owned by another person should say *something* to an object owned by myself. The object owned by me should respond with a llInstantMessage to the owner of the object talking (on touch). I know it will return an invalid key passed error if one assumes it knows who touched the object, so... If I use llGetOwner can I make it detect who owns the object that spoke? Does that make any sense? It is still so hard for me to do, that I don't want to chase something that cannot be done... Can it?
- 5 replies
-
- listener
- llgetowner
-
(and 1 more)
Tagged with:
-
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"); } }