DONTSITONME
From OpenSimulator
(Difference between revisions)
m (Robot: Cosmetic changes) |
m (Indentation) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Quicklinks}} | {{Quicklinks}} | ||
− | < | + | |
− | + | <source lang="lsl"> | |
− | + | default | |
− | + | { | |
− | + | state_entry() | |
− | llSetTimerEvent(25); | + | { |
− | llSitTarget(<0,0,0. | + | llSetTimerEvent(25.0); |
− | llSay( | + | llSitTarget(<0.0, 0.0, 0.1>, <0.0, 0.0, 0.0, 1.0>); |
− | + | llSay(PUBLIC_CHANNEL, "Dont sit on me!"); | |
− | + | } | |
− | + | ||
− | + | changed(integer how) | |
− | + | { | |
− | + | if ((how & CHANGED_LINK) != 0) | |
− | + | { | |
− | + | if (llAvatarOnSitTarget() != "") | |
− | + | { | |
− | + | llSay(PUBLIC_CHANNEL, "ACK! GET OFF !!!"); | |
− | + | } | |
− | + | } | |
− | + | } | |
− | + | ||
− | + | timer() | |
− | + | { | |
+ | llSay(PUBLIC_CHANNEL, "Please don't sit on me"); | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
[[Category:Scripts]] | [[Category:Scripts]] |
Revision as of 06:36, 22 September 2020
default { state_entry() { llSetTimerEvent(25.0); llSitTarget(<0.0, 0.0, 0.1>, <0.0, 0.0, 0.0, 1.0>); llSay(PUBLIC_CHANNEL, "Dont sit on me!"); } changed(integer how) { if ((how & CHANGED_LINK) != 0) { if (llAvatarOnSitTarget() != "") { llSay(PUBLIC_CHANNEL, "ACK! GET OFF !!!"); } } } timer() { llSay(PUBLIC_CHANNEL, "Please don't sit on me"); } }