llAvatarOnSitTarget.lsl · 505 B · ext
.lsl · seen 8× in SWHvia unique-primary
swh:1:cnt:b4ab5327b8144eca32858e3cb56cf81c91751752;origin=https://github.com/holoneon/opensim-tranquillity-work;anchor=swh:1:rev:7f6d2752512288d6475be246fee67a937e1fe446;path=/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl
Show source
default
{
state_entry()
{
// set sit target, otherwise this will not work
llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
key av = llAvatarOnSitTarget();
//evaluated as true if not NULL_KEY or invalid
if (av)
{
llSay(0, "Hello " + llKey2Name(av) + ", thank you for sitting down");
}
}
}
}