flagflag  
1: 2009-07-13 (Mon) 11:47:41 admin source 2: 2009-07-13 (Mon) 11:49:00 admin source
Line 1: Line 1:
-vector target=<157,84,111>; + vector target=<157,84,111>; 
-vector offset; + vector offset;
- +
-default +
-{+
 + default
 + {
   on_rez(integer params)    on_rez(integer params)
   {    {
-       //offset = (target- llGetPos()) * (ZERO_ROTATION / llGetRot()); 
       offset = target- llGetPos();        offset = target- llGetPos();
       llSitTarget(offset, ZERO_ROTATION);        llSitTarget(offset, ZERO_ROTATION);
   }    }
- 
   touch_start(integer total_number)    touch_start(integer total_number)
   {    {
-       //offset = (target- llGetPos()) * (ZERO_ROTATION / llGetRot()); 
       offset = target- llGetPos();        offset = target- llGetPos();
       llSitTarget(offset, ZERO_ROTATION);        llSitTarget(offset, ZERO_ROTATION);
   }    }
- 
   state_entry()    state_entry()
   {    {
-       //offset = (target- llGetPos()) * (ZERO_ROTATION / llGetRot()); 
       offset = target- llGetPos();        offset = target- llGetPos();
       llSetSitText("Teleport");        llSetSitText("Teleport");
       llSitTarget(offset, ZERO_ROTATION);        llSitTarget(offset, ZERO_ROTATION);
   }    }
- 
   changed(integer change)    changed(integer change)
Line 39: Line 32:
       }        }
   }    }
- + }
-}+


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

31 user(s) are online (2 user(s) are browsing xpwiki)

Members: 0
Guests: 31

more...

Access Counter

Today : 3202320232023202
Yesterday : 4345434543454345
Total : 2366034323660343236603432366034323660343236603432366034323660343
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com