DONTSITONME

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Robot: Cosmetic changes)
m (Indentation)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{Quicklinks}}
 
{{Quicklinks}}
<br />
+
 
default
+
<source lang="lsl">
{
+
default
    state_entry()  
+
{
    {
+
    state_entry()  
         llSetTimerEvent(25);
+
    {
         llSitTarget(<0,0,0.1f>,<0,0,0,1>);
+
         llSetTimerEvent(25.0);
         llSay(0,"Dont sit on me!");
+
         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)
+
    changed(integer how)
        {
+
    {
            if (llAvatarOnSitTarget() != "")
+
        if ((how & CHANGED_LINK) != 0)
            {
+
        {
                llSay(0,"ACK! GET OFF!!!!!!!");     
+
            if (llAvatarOnSitTarget() != "")
            }
+
            {
        }
+
                llSay(PUBLIC_CHANNEL, "ACK! GET OFF !!!");     
    }
+
            }
    timer()
+
        }
    {
+
    }
        llSay(0,"Please don't sit on me");     
+
 
    }
+
    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");    
    }
}
Personal tools
General
About This Wiki