aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl
diff options
context:
space:
mode:
authorBrian McBee2008-01-07 01:03:46 +0000
committerBrian McBee2008-01-07 01:03:46 +0000
commit35b0c2e9dfbbf811c12c9e3e7d4359a13b987977 (patch)
tree42e91b37aa581006dc9defb6780ff15319049d3f /bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl
parentFactor out inventory code in SceneObjectGroup into seperate class. (diff)
downloadopensim-SC-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.zip
opensim-SC-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.tar.gz
opensim-SC-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.tar.bz2
opensim-SC-35b0c2e9dfbbf811c12c9e3e7d4359a13b987977.tar.xz
More inventory work for CharlieO. Final patch to make it all work yet to come.
Diffstat (limited to 'bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl')
-rw-r--r--bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl b/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl
new file mode 100644
index 0000000..b4ab532
--- /dev/null
+++ b/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl
@@ -0,0 +1,20 @@
1default
2{
3 state_entry()
4 {
5 // set sit target, otherwise this will not work
6 llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
7 }
8 changed(integer change)
9 {
10 if (change & CHANGED_LINK)
11 {
12 key av = llAvatarOnSitTarget();
13 //evaluated as true if not NULL_KEY or invalid
14 if (av)
15 {
16 llSay(0, "Hello " + llKey2Name(av) + ", thank you for sitting down");
17 }
18 }
19 }
20}