Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Owner only poseball

Denise Bonetto
Registered User
Join date: 31 Jan 2007
Posts: 705
10-12-2007 03:24
Hi,

I hope someone can help me. I need a poseball script that can be set to only owner able to use it. Is this possible or do I need to be looking at another way?

:)
_____________________
Mereille Despres
Registered User
Join date: 5 Sep 2007
Posts: 79
10-12-2007 04:18
It's very possible.

In your poseball script (I'm assuming you have a generic one with mod permissions) add this to your changed event (I put a whole function here so you can see where to place the new code:


changed(integer change)
{
if (change & CHANGED_LINK)
{
key agent = llAvatarOnSitTarget();
if (agent)
{
//THIS IS THE NEW CODE. WILL UNSEAT ANYONE NOT THE OWNER
if (agent != llGetOwner())
{
llSay(0, "You aren't the owner";);
llUnSit(agent);
}
//END NEW CODE SECTION
}
}
}
Denise Bonetto
Registered User
Join date: 31 Jan 2007
Posts: 705
10-12-2007 07:48
Thankyou very much, will give it a go when I can get inworld. I do have an open poseball script I can use to transfer the animation to which hopefully will have those lines :)
_____________________