Difference between revisions of "Phantom Maker"

From Second Life Wiki
Jump to navigation Jump to search
m
(Replace this warning with the real one, I don't know what that is.)
 
Line 1: Line 1:
{{LSL Header}}
{{LSL Header}}
{| style="border: 1px solid black" cellpadding="0" cellspacing="0"
|-
!style="padding:.5em; background: #FF0000" |'''OBSOLETE:'''
|style="padding:.5em; border-left: 1px solid black; background: #FFDD00"| This glitch has been fixed in Second Life, this Script no longer functions as intended.
|}


While I ([[User:Xaviar_Czervik|Xaviar Czervik]]) was making a vehicle script, I discovered this glitch with [[llVolumeDetect]] that allows avatars to become phantom. This means, you can pass through all objects and avatars solid. It is a known bug, and I put it on the JIRA, {{Jira|SVC-2570}}, but Kate Linden has confirmed that people are allowed to use this without violating the CS or ToS.
While I ([[User:Xaviar_Czervik|Xaviar Czervik]]) was making a vehicle script, I discovered this glitch with [[llVolumeDetect]] that allows avatars to become phantom. This means, you can pass through all objects and avatars solid. It is a known bug, and I put it on the JIRA, {{Jira|SVC-2570}}, but Kate Linden has confirmed that people are allowed to use this without violating the CS or ToS.

Latest revision as of 18:40, 25 January 2009


OBSOLETE: This glitch has been fixed in Second Life, this Script no longer functions as intended.


While I (Xaviar Czervik) was making a vehicle script, I discovered this glitch with llVolumeDetect that allows avatars to become phantom. This means, you can pass through all objects and avatars solid. It is a known bug, and I put it on the JIRA, SVC-2570, but Kate Linden has confirmed that people are allowed to use this without violating the CS or ToS.

To make this effect, save this script in an object. Then, just sit on it. It will delete itself, so it may be better to take a copy first. After you stand back up, you will be able to pass through anything. <lsl> default {

   state_entry() {
       llSitTarget(<0,0,.1>, <0,0,0,0>);
   }
   
   changed(integer i) {
       if (llGetOwner() != llAvatarOnSitTarget()) return;
       if (!(i & CHANGED_LINK)) return;
       llVolumeDetect(1);
       llDie();
   }
   
   on_rez(integer i) {
       llResetScript();
   }
       

} </lsl>

To remove the effect, do the same thing for the following script. Note the only difference is that there is a "llVolumeDetect(0);" after the first volume detect. <lsl> default {

   state_entry() {
       llSitTarget(<0,0,.1>, <0,0,0,0>);
   }
   
   changed(integer i) {
       if (llGetOwner() != llAvatarOnSitTarget()) return;
       if (!(i & CHANGED_LINK)) return;
       llVolumeDetect(1);
       llVolumeDetect(0);
       llDie();
   }
   
   on_rez(integer i) {
       llResetScript();
   }
       

} </lsl>