Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Taking Controls... or maybe not

Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
09-23-2009 11:45
heyas;

okay, i'm running into some plywood walls on something i'm trying to do here.

i know that a script can only take ONE set of controls from an avatar at a time. and every time you take other controls the first ones get erased. that's fine.

i know that a script can only take controls for ONE avatar at a time. that's fine.


what i'm having trouble with is, two scripts in one prim, taking controls of the avatar. why is this apparently not working?

do i HAVE TO release the controls from one script befor taking them in another? (and yeah, its the same controls). i used to release them when not used, but then it gave me a no permissions error when i tried to re-take them. so instead i started using take control false, true, to let the avatar use them without raising an event.

now in the second script, i got permissions, permissions were granted, i got to the run time permissions part... and the events for the control handler didn't run.

can somebody help straighten me out? thanks!
_____________________
Why Johnny Can't Rotate:
http://forums.secondlife.com/showthread.php?t=94705
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
09-23-2009 11:59
{Attach} http://jira.secondlife.com/browse/SVC-343
_____________________
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
09-23-2009 12:17
A common work around, if it fits your scenario (depends what you are doing), is to have a another prim (maybe a hud) that you can use, and manually negotiate the pressing of control keys. So like, one control script in each prim, and communicate over a channel together.