Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to get premission from others than the owner of an object?

Joakim Yakan
Fast learner
Join date: 2 Oct 2006
Posts: 31
10-06-2006 04:53
Hello!

I can't figure out how to get a permission form an avatar who's not the owner of the object.
The script will start an animation of the avatar after getting the permission.

So my question is, what is the function of an avatar touching an object who's not the owner?
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
10-06-2006 05:16
Just use llDetectedKey(0) instead of llGetOwner()...
Joakim Yakan
Fast learner
Join date: 2 Oct 2006
Posts: 31
10-06-2006 05:26
From: Tiarnalalon Sismondi
Just use llDetectedKey(0) instead of llGetOwner()...

Thank you!
Joakim Yakan
Fast learner
Join date: 2 Oct 2006
Posts: 31
10-06-2006 05:58
One more question.
I want to make something happen when the avatar touches the "Sit" button. How?
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
10-06-2006 07:10
What "Sit" *button* do you mean? Do you mean the "Sit" entry in the pie menu? And if so - what do you want to "happen"?
Zeera Xi
Real Join Date: Mid '05
Join date: 21 Sep 2006
Posts: 54
10-06-2006 08:38
CODE

changed(integer change)
{
if(change & CHANGED_LINK)// A prim has been linked/delinked in the object
{
if(llAvatarOnSitTarget() != NULL_KEY)// An agent sitting causes the object linkset to change, so check if an agent is sitting
{
// Do Whatever when agent is sitting
}
}
}
Joakim Yakan
Fast learner
Join date: 2 Oct 2006
Posts: 31
10-06-2006 12:41
Thank you all for helping me!