Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Stopping a Looped Animation When a Key is Released

KeeperS Karu
Registered User
Join date: 18 Oct 2008
Posts: 31
11-11-2008 11:18
Heyla!

I'm working with the free sword script, putting in my own animations and sound effects. One of the things I'm attempting to do is trigger a blocking animation when I hit the pg dwn key while holding the left mouse button. It's a looping animation because I want to be able to remain in the blocking position for as long as I'm holding down the pg dwn key and left mouse button. But the moment I release either the left mouse button or the pg dwn key, I want the animation to stop playing. Now, I was able to trigger the animation, but I'm not quite sure how to stop the animation the moment either the pg dwn or left mouse button key is released. Can anyone give me any ideas?

Thank you for your help,
Keeper S. Karu
Cappy Frantisek
Open Source is the Devil!
Join date: 27 Oct 2006
Posts: 400
11-11-2008 11:36
From: KeeperS Karu
Heyla!

I'm working with the free sword script, putting in my own animations and sound effects. One of the things I'm attempting to do is trigger a blocking animation when I hit the pg dwn key while holding the left mouse button. It's a looping animation because I want to be able to remain in the blocking position for as long as I'm holding down the pg dwn key and left mouse button. But the moment I release either the left mouse button or the pg dwn key, I want the animation to stop playing. Now, I was able to trigger the animation, but I'm not quite sure how to stop the animation the moment either the pg dwn or left mouse button key is released. Can anyone give me any ideas?

Thank you for your help,
Keeper S. Karu


I believe if you revist the control event structure, you may just find your answer.
http://rpgstats.com/wiki/index.php?title=Control
http://wiki.secondlife.com/wiki/Control
KeeperS Karu
Registered User
Join date: 18 Oct 2008
Posts: 31
11-11-2008 11:39
Oh, thank you! I think this will help, a lot!

EDIT: Scratch that, this is exactly the information I was looking for. I've been using another site to look for information on controls, and I didn't turn up anything that helped me. It didn't occur to me that the information I needed would be here. Thank you, again!