These forums are CLOSED. Please visit the new forums HERE
How do I detect if an area is Mature? |
|
Shift Night
Registered User
Join date: 15 Apr 2005
Posts: 3
|
04-21-2005 20:01
Exactly that. I can llGetRegionName(), but I can't seem to get the area's 'age' setting. I'd like to find out if an area is Mature, PG, etc. This is extremely useful for say a script that automatically puts on certian clothing items if I teleport to a PG area, and removes others if I shouldn't wear them in a PG area.
|
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
04-21-2005 20:25
This is an interesting question. Your best bet, presently, is to create a notecard with "Mature" sims written on it - then check against that when teleporting somewhere.
I think we all want to lobby for more llRequestSimulatorData variables. However, you're going to run into a second problem... there is presently no "good" way to attach or detach objects from an avatar through LSL. Sorry. You're just going to have to use discretion when teleporting. ![]() _____________________
---
|
Eggy Lippmann
Wiktator
![]() Join date: 1 May 2003
Posts: 7,939
|
04-21-2005 22:21
llGetSexBallDensity()
![]() _____________________
|
Torley Linden
Enlightenment!
![]() Join date: 15 Sep 2004
Posts: 16,530
|
04-21-2005 22:43
llGetSexBallDensity() ![]() Cluck you, Eggy, that's the IMMATURE function! ![]() _____________________
|
Eggy Lippmann
Wiktator
![]() Join date: 1 May 2003
Posts: 7,939
|
04-22-2005 02:27
Torley what are you doing in the scripting forum? You stalker!
![]() You should give scripting a try. Aspies are exceedingly logical people aren't they? You would be a natural. _____________________
|
Nashville Rambler
Pilgrim
Join date: 20 Mar 2005
Posts: 51
|
04-22-2005 06:27
Cluck you, Eggy, that's the IMMATURE function! ![]() Yes, Torley, you really should play around with some scripting. As you know, I'm an 'Aspie' (I love that cute, diminutive) and I've been programming off and on, mostly on, since 1978! I ruined a perfectly good hobby by making a career of it. Now that I have found SL, The Thrill Is Back! I'm having the funnest time programming that I've had in *years*! I'm going to learn Python as well as LSL, so that I can script Poser, etc! |
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
detecting mature workaround..
04-22-2005 12:20
I was talking to a guy once about the weirdness of how when you teleport it resets a script, and he uses it to make his personal parts invisible, so when he teleports he doesn't get yelled at if it's into a PG area..
not sure if it works when simply crossing a SIM border.. but I dont think mature and pg sims should be adjacent, but that's just me.. |
Chandra Page
Build! Code. Sleep?
![]() Join date: 7 Oct 2004
Posts: 360
|
04-22-2005 13:09
I was talking to a guy once about the weirdness of how when you teleport it resets a script, and he uses it to make his personal parts invisible, so when he teleports he doesn't get yelled at if it's into a PG area.. not sure if it works when simply crossing a SIM border.. but I dont think mature and pg sims should be adjacent, but that's just me.. Nope, merely crossing sim borders does not reset scripts; that would make driving or flying a vehicle across a border even more unpleasant. Teleportation resets scripts because SL re-rezzes your attachments when you teleport. _____________________
Come visit the In Effect main store and café
Drawbridge (160, 81) Particle effects, fashion, accessories, and coffee! On the Web at SL Exchange and SL Boutique |
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
04-23-2005 17:16
Teleportation resets scripts because SL re-rezzes your attachments when you teleport. Not necessarily, teleportation does re-rez attachments (changing their UUID) but scripts only recieve an on_rez event, and continue functioning normally (at least, last time I tested... ![]() ==Chris _____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
tested it..
04-23-2005 22:50
Yep it's still just triggering the rez.. so put all the make naughty bits invisible in the rez event..
|