Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This is the command used to make the onject show itself. You can change it to what ever you like.
  2. string sCommand = "sling";
  3. string dCommand = "draw";
  4.  
  5. //This is the channel which the object will listen to. It is set to channel 9 so to make it work you will say '/9' then the command.
  6. integer chan = 19;
  7.  
  8. //this is the time that the object will display itself for before it         automatically hides itself, it is set to 0 so you will se the box when you rez it.
  9. float time = 0;
  10.  
  11. //This script automatically turns the object to phantom, If you wish it to be solid then change this value to FALSE.
  12. integer switch = FALSE;
  13.  
  14. //---------------------------------------------------------------------
  15.  
  16. default
  17. {
  18.     state_entry()
  19.     {
  20.         llListen(chan,"","hk USP 9mm","");
  21.         llSetStatus(STATUS_PHANTOM,switch);
  22.         llSetTimerEvent(time);
  23.     }
  24.  
  25.     listen(integer channel, string name, key id, string msg)
  26.     {
  27.         if (msg == sCommand)
  28.         {
  29.             llSetAlpha(1,ALL_SIDES);
  30.            
  31.         }
  32.        
  33.         if (msg == dCommand)
  34.         {
  35.             llSetAlpha(0,ALL_SIDES);
  36.         }
  37.     }      
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement