Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer toggle;
- default
- {
- state_entry()
- {
- // llSay(0, "Hello, Avatar!");
- }
- touch_start(integer total_number)
- {
- vector v = llList2Vector(llGetPrimitiveParams([PRIM_POS_LOCAL]),0);
- toggle =!toggle;
- if(toggle){
- v.z+=0.1;
- }
- else{
- v.z-=0.1;
- }
- // llOwnerSay((string)v);
- llSetPrimitiveParams([PRIM_POS_LOCAL,v, PRIM_TEXT,(string)v, <1.0,1.0,1.0>,0.0]);
- //changing inivisble hovertext is a hack to make sure the viewer actually registers small movements in attachments
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment