integer llIsFriend( key agent_id );
Forced delay: 0.0 seconds. Energy: 10.0.
Returns a boolean (an integer) that is TRUE if agent_id and the owner of the prim the script is in are friends, otherwise FALSE.
default
{
state_entry()
{
llSensorRepeat("", NULL_KEY, AGENT, 95, PI, 10);
}
sensor(integer count)
{
integer index;
for (index = 0; index < count; ++index)
{
string is_is_not = " is NOT ";
if (llIsFriend(llDetectedKey(index)))
{
is_is_not = " is ";
}
llSay(0, llDetectedName(index) + is_is_not + "a friend.");
}
}
}