User:Toy Wylie/RLV Documentation/sit: Difference between revisions
Jump to navigation
Jump to search
Second example |
m Changed | to / |
||
| Line 3: | Line 3: | ||
# Restriction | # Restriction | ||
|usage=# @sit:<UUID>=force | |usage=# @sit:<UUID>=force | ||
# @sit=<y | # @sit=<y/n> | ||
|purpose=# Forces the target to sit on the inputed object. This is used primarily for catching victims in RLV traps. | |purpose=# Forces the target to sit on the inputed object. This is used primarily for catching victims in RLV traps. | ||
# Prevents the target to sit down at all. | # Prevents the target to sit down at all. | ||
Revision as of 08:32, 7 July 2010
@sit
Type
# General
- Restriction
Implemented
Implemented since RLV version 1.04a
Usage
# @sit:<UUID>=force
- @sit=<y/n>
Purpose
# Forces the target to sit on the inputed object. This is used primarily for catching victims in RLV traps.
- Prevents the target to sit down at all.
Example 1
<lsl>default
{
state_entry()
{
// set sit position
llSitTarget(<0,0,0.1>,ZERO_ROTATION);
}
touch_start(integer total_number)
{
llOwnerSay("@sit:"+(string) llGetKey()+"=force");
llOwnerSay("You have been caught.");
}
}
</lsl>Example 2
<lsl>integer sit;
default {
state_entry()
{
sit=TRUE;
}
touch_start(integer total_number)
{
sit=!sit;
if(sit==TRUE)
{
llOwnerSay("You may now sit down again.");
llOwnerSay("@sit=y");
}
else
{
llOwnerSay("You are now prevented from sitting down.");
llOwnerSay("@sit=n");
}
}
}
</lsl>