Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Control Issues

Gerami Fizz
That Guy
Join date: 15 Jun 2005
Posts: 88
01-10-2006 11:32
Hello Scripters,

I recently wrote a rather simple flight booster for myself that uses control inputs and llApplyImpulse for high-altitude flight. The script takes user controls when the avatar is flying, and releases them upon landing. To keep things organized I even used "default" and "flying" states. Here's where it gets interesting:

When I wear any other attachment that uses controls, (a gun, for instance) I lose those controls whenever my flight attachment kicks in (when I start flying). I don't get them back when my flight script releases its controls either. I tested a couple freebie flight scripts that use similar control concepts, and they don't cause this phenomenon. Has anyone else dealt with this problem before? How did you fix it?

Thanks.
Gerami Fizz
That Guy
Join date: 15 Jun 2005
Posts: 88
01-10-2006 22:49
I've isolated the problem a bit more. The effect it has is to release controls that are no-passthrough. Other control-taking items that have passthrough seem unaffected. Even though the controls taken between the two items don't overlap, is it possible for one to take controls away from the other, and then release them, leaving me with none? This appears to be what is happening, but I can't figure out why, since it's at such a basic level there's practically nothing for me to analyze. It's partially llTakeControls and llReleaseControls finishes the job, but if that's the case, then why do things like X-flight not cause this problem? (I made this attachment to replace X-flight for my personal use).

Ok, if anyone can understand what I just wrote, you get 100 points. I'm going to fall asleep on my keyboard now. Goodnight!