Difference between revisions of "User:Toy Wylie/RLV Documentation/rez"
Jump to navigation
Jump to search
(first draft) |
m (seealso) |
||
Line 5: | Line 5: | ||
|notes= | |notes= | ||
|version=1.03 | |version=1.03 | ||
|seealso= | |seealso=edit | ||
|seealsoalso= | |seealsoalso= | ||
|example=<lsl>integer rez; | |example=<lsl>integer rez; |
Latest revision as of 02:14, 12 July 2010
@rez
Type
Restriction
Implemented
Implemented since RLV version 1.03
Usage
@rez=<y/n>
Purpose
This restriction prevents the user from rezzing and creating objects. The user will be unable to pull objects from their inventory into the world. Deleting objects or dropping attachments to the ground will also be restricted. This does not affect scripted rezzing, however.
See Also
Example
<lsl>integer rez;
default {
on_rez(integer num) { llResetScript(); } state_entry() { rez=TRUE; llOwnerSay("Touch me to change the restrictions applied to you."); } touch_start(integer num) { if(llDetectedKey(0)==llGetOwner()) { rez=!rez;
if(rez==TRUE) { llOwnerSay("@rez=y"); llOwnerSay("You can now rez and delete objects once again."); } else { llOwnerSay("@rez=n"); llOwnerSay("Rezzing and deleting objects is now restricted."); } } }
}
</lsl>