Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSafe(); - Returns True if Parcel of Land Is Safe Land

Ares Desmoulins
Registered User
Join date: 13 Sep 2005
Posts: 22
02-11-2006 20:17
llSafe();

This function, when called, will return TRUE if the parcel the task is in is "safe" land.

This tool would be fantastic for weapons and shieldmakers.

On the offensive side, the responsible weapons scripters can disable push aspects of their guns, cut back on lag by disabling unnecessary sensor sweeps for tracking weapons and open channel commands for spell type weapons.

On the defensive side, the responsible shield scripters can also disable shell rezzing, remove sensor sweeps and physics disruptors, blockers, etc. further freeing up sim resources and thus removing lag.
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
02-11-2006 20:20
We're getting parcel info that includes that in 1.9.0 :D

* integer llGetParcelFlags(vector pos)
** Get the parcel flags (PARCEL_FLAG_*) for the parcel including the point pos
*** PARCEL_FLAG_ALLOW_FLY
**** Used with llGetParcelFlags to find if a parcel allows flying
*** PARCEL_FLAG_ALLOW_SCRIPTS
**** Used with llGetParcelFlags to find if a parcel allows outside scripts
*** PARCEL_FLAG_ALLOW_LANDMARK
**** Used with llGetParcelFlags to find if a parcel allows landmarks to be created
*** PARCEL_FLAG_ALLOW_TERRAFORM
**** Used with llGetParcelFlags to find if a parcel allows anyone to terraform the land
*** PARCEL_FLAG_ALLOW_DAMAGE
**** Used with llGetParcelFlags to find if a parcel allows damage
*** PARCEL_FLAG_ALLOW_CREATE_OBJECTS
**** Used with llGetParcelFlags to find if a parcel allows anyone to create objects
*** PARCEL_FLAG_USE_ACCESS_GROUP
**** Used with llGetParcelFlags to find if a parcel limits access to a group
*** PARCEL_FLAG_USE_ACCESS_LIST
**** Used with llGetParcelFlags to find if a parcel limits access to a list of residents
*** PARCEL_FLAG_USE_BAN_LIST
**** Used with llGetParcelFlags to find if a parcel uses a ban list
*** PARCEL_FLAG_USE_LAND_PASS_LIST
**** Used with llGetParcelFlags to find if a parcel allows passes to be purchased
*** PARCEL_FLAG_LOCAL_SOUND_ONLY
**** Used with llGetParcelFlags to find if a parcel restricts spacialized sound to the parcel
_____________________
Calix Metropolitan
Registered User
Join date: 10 May 2005
Posts: 212
Proposal perhaps?
02-11-2006 20:22
If you make this a formal proposal I will indeed vote for this and I feel confident that many, many others will as well.

- Calix
_____________________
Games Developer - Public Relations - Support / Free Culture Advocate and Occasional Martian Saint --- Tempus Fugit

Come play the hottest game in SL!!!
TECH WARFARE @ Arcadia 1 (68, 154, 22)

Corvus Drake
Bedroom Spelunker
Join date: 12 Feb 2006
Posts: 1,456
02-15-2006 14:28
The check for allowing damage is the real key.

Weaponmakers could then make safeties for their weapons so they would refuse to fire if the check for allowing damage returns FALSE. If enough manufacturers were responsible with it, weapongriefing would be nearly a thing of the past, and the value of the then "contraband" old guns would go through the roof as they became collectible. It would also give the Lindens a place to look if new griefing weapons are created.
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
02-15-2006 19:09
As Calix notes, this is already possible in 1.9 preview, and will be possible grid wide when 1.9 is released. Please go to www.secondlife.com/preview to get a preview client and try it out!
_____________________
- Kelly Linden