Help Needed with Animated Object
|
Ulrika Zugzwang
Magnanimous in Victory
Join date: 10 Jun 2004
Posts: 6,382
|
07-04-2004 00:49
I've made a series of protest animations that have placed inside of a protest sign. They work great for me, however no one to whom I give the signs can use the animations due to permissions problems.
I'm using the standard:
llRequestPermission(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
This is a modification from this line which I use in a piece of furniture that is verified as working:
llRequestPermission(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
What is the correct way to get an avatar's key from a piece of worn clothing (or protest sign)?
If it's not the script, what do the permission of the animations in the object need to be?
Any help would be appreciated.
~Ulrika~
_____________________
Chik-chik-chika-ahh
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-04-2004 01:19
Actually, I think what you're asking is a scripting question. If the script isn't designed to reset when it's rezzed, and is running when you hand them the object, llGetOwner will not be called and will retain the key that it originally got when you called it. To avoid this, use llResetScript in your on_rez event. This will cause the script to be reset every time it's rezzed.
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-04-2004 01:22
Also, I should note that the permissions systm in LSL is not the same as the DRM copy/mod/transfer permissions for objects. LSL's permissions affect what the script is allowed to do. (give money, animate an avatar, etc.) So you can't change the LSL permissions by editing the object, only the script.
|
Gaudeon Wu
Hermit
Join date: 5 May 2003
Posts: 142
|
07-04-2004 12:55
If protest signs are for attaching you may want to use the attach event instead of requesting permissions in state_entry and using on_rez to reset the script. attach also passes you the key of the av that is attaching it so you don't need to call llGetOwner. Keep in mind that when the object is unattached this event is called and NULL_KEY is passed as the key. So you can actually test when the object is detached and stop the protest animation for that av if they gave permission to trigger it. OK long winded explanation the code is simpler to show lol. attach(key id) { if(id != NULL_KEY) { llRequestPermissions(id,PERMISSION_TRIGGER_ANIMATION); } else { if(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION) { llStopAnimation("animation"); } } }
_____________________
All under heaven...
|
Ulrika Zugzwang
Magnanimous in Victory
Join date: 10 Jun 2004
Posts: 6,382
|
07-04-2004 19:39
Brilliant! Catherine and Gaudeon, your advice was right on. It was a scripting problem and the modifications you suggested fixed everything right up. One humorous complication I've bumped into is, that there is no way people who purchase my signs can modify the texture to customize them. If I set them as modify, the purchaser can set the copy flag and sell reproductions of them. It appears the only way I can make money on animated protest signs is to custom make them for people.  Oh well. It was a fun exercise at least. ~Ulrika~
_____________________
Chik-chik-chika-ahh
|
Shadow Weaver
Ancient
Join date: 13 Jan 2003
Posts: 2,808
|
07-06-2004 11:11
ulrika IM me when I get in world tonight I may have a solution to your problem..  so that you dont have to customize them. Shadow
_____________________
Everyone here is an adult. This ain't DisneyLand, and Mickey Mouse isn't going to swat you with a stick if you say "holy crapola."<Pathfinder Linden> New Worlds new Adventures Formerly known as Jade Wolf my business name has now changed to Dragon Shadow. Im me in world for Locations of my apparrel Online Authorized Trademark Licensed Apparel http://www.cafepress.com/slvisionsOR Visit The Website @ www.slvisions.com
|
Siggy Romulus
DILLIGAF
Join date: 22 Sep 2003
Posts: 5,711
|
07-06-2004 19:33
You could allow them to drop a texture into the sign, and have that texture display on the sign front (or even drop as many textures as they like and have them cycle through..)
IM me if you get stuck, sounds like a pretty quick script.
I'd double check the modify thing though - sounds like something isn't set right.
Siggy.
_____________________
The Second Life forums are living proof as to why it's illegal for people to have sex with farm animals. From: Jesse Linden I, for one, am highly un-helped by this thread
|
Ulrika Zugzwang
Magnanimous in Victory
Join date: 10 Jun 2004
Posts: 6,382
|
07-06-2004 21:53
I see. So you're saying that the texture can be handled by a script to get around the permissions catch 22? Fascinating. I'll contact you two soon.
~Ulrika~
_____________________
Chik-chik-chika-ahh
|