06-30-2008 19:00
Never really had a problem with the control event before...but...

...I've scripted an attachment to take controls when a script is turned on via the llSetScriptState() function...

llRequestPermissions(kowner, (PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS));

...stuck the following into the run_time_permissions event...

if(permissions & (PERMISSION_TAKE_CONTROLS)) llTakeControls((CONTROL_LBUTTON | CONTROL_ML_LBUTTON | CONTROL_DOWN), TRUE, FALSE);

...and then have the following in the control event...

if(held & (CONTROL_LBUTTON | CONTROL_ML_LBUTTON)) rezobj(ANIM_RIGHT);
else if(held & CONTROL_DOWN) rezobj(ANIM_LEFT);



Now...the funny stuff:

1--It was working earlier today...NO script changes

2--Sticking a timer into the script to check returns "Control Permissions still Active" continuously

3--Sticking an llOwnerSay() into the control event returns absolutely nothing.


It's almost as if controls are being taken, but no control-events are being relayed.

Again...this EXACT object and script was tested, working, re-tested, working, attached/detached, working...and then suddenly just stopped about an hour ago...

Anyone know of particular oddities with control events on attachments that may be causing the issue?
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.