Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Mouselook and Left click?

Davy Flytrap
Registered User
Join date: 21 Feb 2005
Posts: 146
06-01-2005 09:01
Why wont it let me use left click in mouselook when i enable the ML in the script..here is my script..

default
{
state_entry()
{
}

changed(integer change)
{
if (change & CHANGED_LINK)
{
key driver = llAvatarOnSitTarget();
if (driver)
{
llRequestPermissions(agent, PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS);
}
}

}

run_time_permissions(integer perm)
{
if (perm)
{
llTakeControls(CONTROL_ML_LBUTTON | CONTROL_LBUTTON, TRUE, FALSE);
}
}

}


Is it me or is it a bug?
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
mouse click
06-01-2005 09:10
Well for one your requesting permissions from the wrong person.. you need to change agent to driver.

llRequestPermissions(driver, PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS);
Davy Flytrap
Registered User
Join date: 21 Feb 2005
Posts: 146
06-01-2005 09:32
yeh i did that already..

When i told you my script i wrote it out again hehe..

Any other ideas?
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
06-01-2005 11:07
Post your control event, please?
_____________________
Davy Flytrap
Registered User
Join date: 21 Feb 2005
Posts: 146
06-01-2005 11:17
im not using a control event

but would that stop m from being able to click in mouselook?
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
06-01-2005 11:39
It might! Try adding an empty control event. (I had a sensor script recently that I was only interested in acting on a fail condition - no_sensor() - but it would do nothing without an empty sensor() event.)
_____________________
Davy Flytrap
Registered User
Join date: 21 Feb 2005
Posts: 146
06-01-2005 12:51
thanks all...case closd hehe

* ty Zalandria for your GREAT help within SL
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
06-01-2005 15:49
From: Davy Flytrap
thanks all...case closd hehe

* ty Zalandria for your GREAT help within SL

Well, post for others what the problem was se we can learn as well, please?
_____________________