Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detecting if land is PG or mature?

Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
05-26-2007 09:56
Maybe I've just missed it completely, but is there actually no way of knowing if land is PG or mature?

I'm making a prim-avatar with adult options built-in (since people seem to love that stuff), however, I figured it would be good to have a 'failsafe' built into it so that if you went into a PG region it would automatically hide those parts (it squashes them down and moves them to the middle of the av, there's no way you can tell what they are/were).

However I haven't found anything that lets me get the rating for either a parcel or a region, I would have thought it'd be in llGetRegionFlags() but I don't see it (or am blind).

I mean ultimately it's up to the owner to be careful, but some people might forget and it'd be nice to at least be able to do everything I can to prevent it heh.
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
05-26-2007 12:02
Using llRequestSimulatorData and the DATA_SIM_RATING flag should do it:

http://rpgstats.com/wiki/index.php?title=LlRequestSimulatorData
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
05-26-2007 16:07
Thank you! I've no idea how it missed it, though it doesn't really make sense that this isn't under llGetRegionFlags() since it's an either/or option set by the simulator. Oh well, cheers for that!
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)