Skip to content

Instantly share code, notes, and snippets.

@sl-service-account
Last active October 24, 2023 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sl-service-account/88a6ac758f6e5d596f9bd8322a5fbcb9 to your computer and use it in GitHub Desktop.
Save sl-service-account/88a6ac758f6e5d596f9bd8322a5fbcb9 to your computer and use it in GitHub Desktop.
default {
state_entry() {
llSensorRepeat("", NULL_KEY, AGENT, 95, TWO_PI, 10);
}
sensor(integer count) {
integer i;
for (; i < count; ++i)
{
if (llIsFriend(llDetectedKey(i))) {
llSay(0, llDetectedName(i) + " is not a friend.");
} else {
llSay(0, llDetectedName(i) + " is a friend.");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment