Difference between revisions of "User:Toy Wylie/RLV Documentation/edit"
Jump to navigation
Jump to search
(first draft) |
m (changed draft to lock) |
||
Line 1: | Line 1: | ||
{{Template:RLV_Documentation/Command | {{Template:RLV_Documentation/Command | ||
| | |lock=Toy Wylie | ||
|command=@edit|type=Restriction | |command=@edit|type=Restriction | ||
|usage=@edit=<y/n> | |usage=@edit=<y/n> |
Revision as of 12:28, 9 July 2010
LOCKED - Locked by Toy Wylie - Please do not modify! - LOCKED
@edit
Type
Restriction
Implemented
Implemented since RLV version 1.03
Usage
@edit=<y/n>
Purpose
This prevents the user from editing.
See Also
Example
<lsl>integer edit;
default {
on_rez(integer num) { llResetScript(); } state_entry() { edit=TRUE; llOwnerSay("Touch me to change the restrictions applied to you."); } touch_start(integer num) { if(llDetectedKey(0)==llGetOwner()) { edit=!edit;
if(edit==TRUE) { llOwnerSay("@edit=y"); llOwnerSay("You can now edit objects once again."); } else { llOwnerSay("@edit=n"); llOwnerSay("Editing objects is now restricted."); } } }
}
</lsl>