Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This is the command used to make the onject show itself. You can change it to what ever you like.
- string sCommand = "sling";
- string dCommand = "draw";
- //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.
- integer chan = 19;
- //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.
- float time = 0;
- //This script automatically turns the object to phantom, If you wish it to be solid then change this value to FALSE.
- integer switch = FALSE;
- //---------------------------------------------------------------------
- default
- {
- state_entry()
- {
- llListen(chan,"","hk USP 9mm","");
- llSetStatus(STATUS_PHANTOM,switch);
- llSetTimerEvent(time);
- }
- listen(integer channel, string name, key id, string msg)
- {
- if (msg == sCommand)
- {
- llSetAlpha(1,ALL_SIDES);
- }
- if (msg == dCommand)
- {
- llSetAlpha(0,ALL_SIDES);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement