Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llIsFriend()

Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
12-26-2005 09:53
This is a simple and sweet function. Basically it takes an id, and returns true if that avatar is on the owner's friend's list, false if they are not.
In the case of an object being passed as the key, it will return true if the owner of that object, is a friend.

Returns true if the owner's key is passed into this function (as typically it is uncommon for an avatar to fall out with themselves).

Basically: If the avatar, or avatar owning the object is either me or a friend of me, then return true.


This would be really handy for items within a home, such as doors and security scanners (or anything interactive) as it allows you to let friends in without having to create a group which is basically just your friends list anyway!
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
12-26-2005 14:48
Hm? Why post this again when you could just bump the old one?
_____________________
---
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
12-26-2005 15:10
Eep! I genuinely forgot that I posted that =S
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
12-26-2005 16:06
Eh.... it happens.
_____________________
---
Professor Qin
Registered User
Join date: 28 Oct 2005
Posts: 3
12-28-2005 08:13
I fell out with myself once. :-(
Luciftias Neurocam
Ecosystem Design
Join date: 13 Oct 2005
Posts: 742
Some more useful functions to have
12-28-2005 10:36
CODE
if(llNumFriends(llKey2Name(id))==0)
{
integer phony=llAdoptsGangstaPersona(llKey2Name(id)) ; //returns TRUE/FALSE

integer annoyance=llHasCrappyPushGun(llKey2Name(id)); //returns TRUE/FALSE

if(annoyance && phony)
{
llAlertLindens2TwelveYearOld(llKey2Name(id))
llSentenceToCornfield(llKey2Name(id));
}
}