Advertisement
Jym_Nova

Light Switch

Jan 12th, 2023
1,830
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer switch;
  2. default{
  3.     touch_end(integer num_dtct){
  4.         switch = !switch;
  5.         llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_POINT_LIGHT,switch,<1,1,1>,1,10,0.75]);
  6.         if(switch){llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_GLOW,1,0.2]);}
  7.         else{llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_GLOW,1,0]);}
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement