Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripts in no-script areas

Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
03-27-2009 15:31
I was wondering what the basic requirements are for a script to continue working in a no script area, providing it was started somewhere else. I know that in scripts were controls are taken, the script will continue to work in no script areas.

However, I have a script that does not need to take controls. It is a HUD that merely responds to being touched and sends out a chatted message to another worn object that listens for it. I noticed today that it stops working when I enter a no-script area. Is the only way to fix this to request permission to take controls even though they aren't needed. Am I missing something else to keep this working in no-script areas?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-27-2009 15:39
From: Monica Balut
Is the only way to fix this to request permission to take controls even though they aren't needed.

Yes. Or operate something like 40+ meters above ground level, where the no-script parcel flags have no effect. Not sure about whole sims that have scripts turned off.
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
03-27-2009 16:38
the function llTakeControls can do the trick to run scripts in no script areas

CODE

// www.lsleditor.org by Alphons van der Heijden (SL: Alphons Jano)
default{

state_entry()
{ llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
}


run_time_permissions(integer perms)
{
if (perms & PERMISSION_TAKE_CONTROLS)
{
}
}

}

PS: not checked inworld.
_____________________


RAW terrain files - terraform your SIM!!
http://www.wishland.info/
PD:the wiki its your friend ;)
http://wiki.secondlife.com/wiki/LSL_Portal
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
03-27-2009 17:24
run_time_permissions <--<< I never write an attachment script without it. =^-^=
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
03-28-2009 12:47
Thank you folks. That's what I thought.
Bryndyn Burton
Registered User
Join date: 2 Jan 2007
Posts: 4
04-12-2009 11:15
It appears that some scripts that I have do not run in *some* no-script areas even with requesting/taking controls. I have not been able to figure out why the same script runs in one location and not in another (both no-script areas).
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
04-12-2009 12:48
From: Bryndyn Burton
It appears that some scripts that I have do not run in *some* no-script areas even with requesting/taking controls. I have not been able to figure out why the same script runs in one location and not in another (both no-script areas).

Are you sure the script requests perms and does the llTakeControls _before_ you enter the no-script land?