SafeZone | Sansar Store
SafeZone

SafeZone

 55

You need to own this item to leave a rating.

0 ratings

This script has two main features:
- define a restricted area ,with a specific range, and ejects users not allowed inside.
- define a jail area for users, that cannot leave it.
It’s perfect to close specific areas in your experience, showroom, or create roleplay elements, like a jail.

[HOW TO USE]
Insert it inside a trigger volume or an object with a rigid body(volume)
This is the center of the restricted or jail area.

You can customize followings parameters:
-[Sensor]: if on, start immediately the scan
-[RangeOfArea]: choose the meters of the are you want restricted (or jail area, if you choose jail mode)
-[Admin]: choose the name of user that can admin the script via chat commands
-[WhitelistNames]: choose the name, separated by a comma, of users that are allowed to enter in the restricted area(or that can leave the jail area)
-[Channel]: This channel permits to other scripts to activate or deactivate the SAFE AREA script.
-[ActivateMessage]: message listened from another script to activate the sensor
-[DeactivateMessage]: message listened from another script to deactivate the sensor
-[JailMode]: if Off, this script will work as a restricted area. In On, the users that enter in the range , cannot leave it. [except they are inserted in white list]
-[AudioFile]: set a sound to play, when an avatar is ejected. If null, no sound is played. If the object has an audio component, sound is played at audio component, else will be played to the agent position.
-[VolumeDB]: choose volume of sounds in DB

Administrator can control the script via chat commands:
/on: activate the script
/off: turn off the script
/add name: add the name to the whitelist
/remove name: remove the name from whitelist
/reset whitelist: clear the whitelist
/jail name: send a specific user to the jail area (only f jail mode is ACTIVE)
/unjail name: unjail a specific user that is restricted in jail area
/whitelist: display the names in whitelist