Sensing Rezzer and Sit Aware Derezzer

I’ve just created a couple of scripts that together could be used for a simple rezzing vehicle/tour style system, but I’m sure they’ll have many other uses too.

Sensing Rezzer

This is a simple rezzer that first checks for the objects already existing in the sim (well, within the limits of a sensor – i.e. 96m) and if the maximum number already exists, won’t rez another one.

Its looks for objects with the same name as the (copyable) object stored in the prim’s inventory.

Parameters at the top of the script allow you to set the maximum number of objects that can be rezzed and the position and rotation value (relative to the prim) at which to rez them.

Derez after Sitting

This script detects when someone has sat on an object and starts a timer. Once the timer expires, the avatar is unseated and the object derezzes.

Update: Aug 2012: Now has better awareness of sittargets in other linked prims in the object.  Also added ‘DEREZ_AFTER_UNSIT_TIMEOUT’ option.

There are a couple of options (set at the top of the script)

  • (optional) immediate derez on unsitting too – i.e. as soon as the avatar unsits, the object derezzes straight away
  • Time (in seconds – 0.0 to disable) before the object derezzes when it detects someone sitting on it
  • Time (in seconds – 0.0 to disable) before the object derezzes after it detects someone getting up off it
  • Time (in seconds – 0.0 to disable) that the object will wait in-world with no-one sitting on it before it derezzes anyway

Where to find the scripts

They are freely available on my scripting wiki page:

If you are not comfortable pasting scripts from the web into SL you can buy a pre-packaged version of this script on the marketplace, or in-world at my store.


~ by kimmpaulino on July 10, 2012.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: