Jump to content

Help! Can someone tell me the script of an animation plays when mouselook + left click of mouse


Yuukimaru
 Share

You are about to reply to a thread that has been inactive for 4733 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

It might help you to know yes it is possible at least.

I know definitely that LSL can do the function you request, and I imagine a scripter somewhere would be happy for the work to write one for you to meet your needs exactly (likely for a nominal fee), if you can not find such a script somewhere existing for free.

Link to comment
Share on other sites

You would need llRequestPermissions for the control event and for trigger animations, and then you would need to do llTakeControls for CONTROL_ML_LBUTTON.

Then you need the control event to check when you start clicking, and then run the animation.

You also need to do a statement checking for when they stop clicking which would proceed to stop the animation. 

Example:

 

default{    attach(key id)    {        if(id){            llRequestPermissions(id, PERMISSION_TAKE_CONTROLS | PERMISSION_TRIGGER_ANIMATION);            llTakeControls(CONTROL_ML_LBUTTON, TRUE, FALSE);        }    }        control(key id, integer held, integer press){        if(press){            if(held) llStartAnimation("LOL I AM AN ANIMATION LOL");            else     llStopAnimation("LOL I AM AN ANIMATION LOL");        }    }}

 

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4733 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...