The package includes a notecard, the script, and a sample prim that has the script and will rez a triangle prim next to itself - so you can see how to set things up if my instructions are not clear.
The test triangle is purposefully noMod, noTrans to prove to you that this rezzer will work even with things you cannot modify, like many a fancy sailboat or car... If you edit it you will also notice it is unscripted - you only need to put the script into the rezzer, unlike some rezzers out there.
******************
This is a free copy/mod script to rez a named object out of a prim, IF AND ONLY IF that object is not present, every 180 seconds (3 minutes).
It can optionally be triggered in chat using channel '1971' like so:
Say 'object (distance_coords) angle' that you want in channel 1971 chat (e.g. "/1971 myStuffz (5.2,0.0,12) 30" will rez an object named 'myStuffz' rotated 30 degrees (on the Z-axis only) and 5.2,0,12 distance away.).
If you manually rez the item, the timer on the auto-rez starts over from that point.
The values you say into chat will 'stick' across future rezzes until the script is reset.
You can reset the script by typing:
/1971 reset
This script allocates 16kb of script memory.
******************
You can put any copyable object into the same prim as this script, and then set up the rezzer prim's Description field with values for what and where to rez:
Values for what to rez are stored in the 'Description' field of an object, like so:
myObject (-0.288,-4.383,1.6) 185.60
If you wish to change the time delay or channel, you will have to edit the script. The values for these are at the top of the script:
integer LISTEN_CHANNEL=1971; // channel to listen on
float SCAN_INTERVAL = 180.0; // How many seconds between checking for a missing item. Be careful to not go too low.
Do not change the 'byHand' value, but any other values can be changed.
If you set up more than one of these within chat range of each other and wish to control them individually simply change the chat channels they use to something different than '1971'
******************
Purpose:
I wanted the ability to sail off with my boats or drive my vehicles away and know that one would always be there waiting for me on return to my land. I've seen a number of rezzer systems out there but they lacked the kind of configuration I desire, or they were only for the objects they came with, or of course the nasty temp rezzers that create lag.
I wanted it to be slow enough that it wouldn't be a lag issue, and timed to put my ';and' back together within a reasonable delay after I'd driven or sailed off.
And I figured... I might as well share this with everyone as a learning tool and to get feedback.
**************************
License:
The script is Copy and Mod, you could easily take it, edit it and see all the code, then hand that out yourself. After all scripts that are Mod can be made 'Trans' by simply copy/pasting the code into a text editor or new script...
I would appreciate if you would instead direct people to get a copy from here so I can have some idea of whether or not scripts like this are appreciated and if I should keep making them, improve them, or not. :)
That's why I made it noTrans, even though that is a powerless setting on a script.
Because it is Mod, and you can see all the code - you can alter it, and if you have coding suggestions on ways to improve it, let me know. You can also use the code as a teaching tool if you yourself are trying to figure out scripting - and I am hopeful that my code is of some use to someone in that manner.
*****************
THIS OBJECT NEEDS CONFIGURATION TO USE, AND CAN 'BREAK' UNTIL 'RESET' IF CHAT COMMANDS ARE MISTYPED.
PLEASE READ THE INCLUDED NOTECARD FOR FULLER INSTRUCTIONS.
*****************
IF YOU USE THIS SCRIPT WITH A NO-COPY OBJECT AND THERE IS AN ERROR, IT IS POSSIBLE TO PERMANENTLY LOSE THAT OBJECT.
NEVER USE A REZZER WITH A NO-COPY OBJECT.
by Pussycat Catnap. 03/04/2016
- rezzer
- perma rezzer
- auto rez missing items
- low lag