Data Realms Fan Forums http://45.55.195.193/ |
|
Animations for non-automatic weapons? http://45.55.195.193/viewtopic.php?f=1&t=31124 |
Page 1 of 1 |
Author: | Arcalane [ Tue Jun 05, 2012 8:51 pm ] |
Post subject: | Animations for non-automatic weapons? |
Okay, so I have some semi-automatic weapons that have a seven-frame animation when firing. Problem is, no matter what I set the animation speed or mode to, I can't seem to get it to animate through the full sequence. It just goes from 000-idle to 001-first frame to back to 000-idle when fired. Is there anything I can do, or is this a problem with the engine itself? |
Author: | Coops [ Tue Jun 05, 2012 10:12 pm ] |
Post subject: | Re: Animations for non-automatic weapons? |
Weapons are hardcoded to use only 2 frames. The first when not firing and the second for firing. A workaround for this is to give it an attachable and animate it via lua. |
Author: | Arcalane [ Tue Jun 05, 2012 10:22 pm ] |
Post subject: | Re: Animations for non-automatic weapons? |
Annoying. Do you have any simple examples of that to hand? I see the SAW RULAS has an animated attachable, but I don't see how the script triggers the animation. |
Author: | Coops [ Wed Jun 06, 2012 12:09 am ] |
Post subject: | Re: Animations for non-automatic weapons? |
The animation on the RULAS was just an ini attachable that was always animated. No lua involved with it. If you want something like where the weapon is animated when firing or you want to specifically change it to certain frames then you have to use lua. But if it's something that's constantly animated no matter, just use ini. |
Author: | Arcalane [ Wed Jun 06, 2012 1:28 am ] |
Post subject: | Re: Animations for non-automatic weapons? |
The idea is to have part of the plasma weapons 'heat up' when fired, then fade back to normal. I have the attachables sprited, attached, and ready to go, just need a script to make them animate properly when the weapon fires. |
Author: | Bad Boy [ Wed Jun 06, 2012 4:17 am ] |
Post subject: | Re: Animations for non-automatic weapons? |
If you just want it to run through the frames shouldn't it be something as simple as attaching a script like: If you want it to go up then go back down through the frames then this should do that: Keep in mind none of this has been tested or anything silly like that so I can't guarantee it'll work. |
Author: | Arcalane [ Wed Jun 06, 2012 8:45 am ] |
Post subject: | Re: Animations for non-automatic weapons? |
Getting it to animate 'normally' is as simple as setting the desired AnimDuration and AnimMode on the attachable itself. That's not the problem, because I don't want the attachable to animate normally. The problem is that the animation is meant to cycle once, when the gun fires. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |