Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- state_entry()
- {
- llSay(0, "Hello, Avatar!");
- }
- touch_start(integer total_number)
- {
- vector touchST = llDetectedTouchST(0);
- vector pos=llGetPos();
- // llSay(0,"originalpos: "+(string)pos.y);
- vector size=llGetScale();
- vector possay;
- pos.y=pos.y-(size.y/2);
- // llSay(0,"topleft: "+(string)pos.y);
- pos.y=pos.y+(size.y*touchST.x);
- llSay(0,"touched pos: "+(string)(pos.y));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement