morgaine-scbannerscrazyisonfire.png

Go Back   Second Citizen MK II > The Mainland: Second Life® > Content Creation > Scripting Tips

Reply
 
Thread Tools Display Modes

Changing animations by mouselook
Old 02-09-2010, 02:31 PM   #1
Aimee Weber
Queen of the Metaverse

Aimee Weber's Avatar
 
Join Date: Aug 2009
Posts: 3,350
My Mood:
Awards Showcase
28th 
Total Awards: 1
Default Changing animations by mouselook

Hey guys, quick question. How can I change a custom animation when a user goes in and out of mouselook?

I noticed that some of the built-in animations like hold_r_handgun will automatically change to aim_r_handgun when you go into mouselook, but I need to be able to do with with two custom animations.

Any ideas?
__________________


The first amendment was never intended to protect speech that *I* don't like.

All the cool kids are following me on Twitter! http://twitter.com/aimee

(Warning, cool results may vary. Consult a physician if symptoms persist.)
Aimee Weber is offline   Reply With Quote

Old 02-09-2010, 02:51 PM   #2
Beezle Warburton
DURR HURR

Beezle Warburton's Avatar
 
Join Date: Aug 2009
Rez Date: Oct 24, 2006
Posts: 4,446
My Mood:
Default

llGetAgentInfo

http://lslwiki.net/lslwiki/wakka.php...llGetAgentInfo

AGENT_MOUSELOOK -> Returned if agent is in mouselook.

Hopefully you can figure it out from there
__________________
Beezle Warburton is offline   Reply With Quote
The following user says thanks:

Old 02-09-2010, 02:54 PM   #3
Aimee Weber
Queen of the Metaverse

Aimee Weber's Avatar
 
Join Date: Aug 2009
Posts: 3,350
My Mood:
Awards Showcase
28th 
Total Awards: 1
Default

Unfortunately that would mean I'd have to do polling, which is baaaad. I was hoping there was an event. But I can't find one :O
Aimee Weber is offline   Reply With Quote

Old 02-09-2010, 07:24 PM   #4
Beezle Warburton
DURR HURR

Beezle Warburton's Avatar
 
Join Date: Aug 2009
Rez Date: Oct 24, 2006
Posts: 4,446
My Mood:
Default

Quote:
Originally Posted by Aimee Weber View Post
Unfortunately that would mean I'd have to do polling, which is baaaad. I was hoping there was an event. But I can't find one :O
Dropped you a freebie bow/arrow set.

I have to be off to school in a moment, otherwise I'd be more helpful.

I did this with a throwing dagger, but it's been a long time since I've looked at the script -- something to do with llTakeControls and edge detection.
Beezle Warburton is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -4. The time now is 05:39 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Second Life® and Linden Lab® are trademarks of Linden Research, Inc.
Second Citizen MK II Forums are not affiliated with or sponsored by Linden Research.
© 2009 - 2011 Second Citizen MKII [SC MKII]
| Home | Register | FAQ | Members List | Calendar | Today's Posts | Search | New Posts |