Jump to content

Is there a plugin that will step through an animation via the right-click menu?


Recommended Posts

I'm working on a VTOL jet engine that uses a complex animation to rotate the nozzle, and I'm looking for a plugin that will only play part of the animation forwards/backwards as the respective button is held. I looked at the Firespitter VTOL module but it seems as though it will only rotate one object around a single pivot, and not with an animation.

Link to comment
Share on other sites

Ah thanks, I was looking for documentation like that :) Unfortunately it looks like the FSanimateGeneric doesn't support locking the animation while running, which is part of the functionality I'd like..

Link to comment
Share on other sites

Did you look at the VTOL part ?

EDIT- Or talk to sirkut about Magic Smoke Industries - Infernal Robotics plugin http://forum.kerbalspaceprogram.com/threads/37707-0-90-Magic-Smoke-Industries-Infernal-Robotics-0-19-3

I did yes, but it looks like it only controls the rotation of an object/transform, and not the running of an animation. Or else I'd use it for sure :) Yeah I may ask them too and see what they say.

Link to comment
Share on other sites

Look at nli2work's space tug. I wrote a module that does something similar to what you want for the engine deployment. It wouldn't be hard to adapt the code to drive the animation via a right click slider if you can hack code about

Link to comment
Share on other sites

Hmm ok, that looks promising. I haven't coded in C# before (only C and C++) but I'll give it a shot lol. I just don't know anything about how to implement GUI sliders and linking them to the animation...or anything related to KSP coding for that matter XD

Link to comment
Share on other sites

That module is really simple, so not too much to wade through. The slider is easy, just look at the source for anything that uses one. The code for finding the animation and stepping it to a specific point is all in that module, so adapting it to accept the value from a slider will be easy enough. Good luck!

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...