Jump to content
Sign in to follow this  
kocrachon

Custom Scripts for Add-ons?

Recommended Posts

Ok, so I got an Add-on where an aircraft has an option to open its ramp, now, is this possible to do via the _aircraft action ["Open Ramp", _aircraft] command, or is there something else I may have to pull off?

Share this post


Link to post
Share on other sites

The ramp(s) will have named animations in the Model.cfg file (or maybe the config.cpp file)

Those names are custom, whatever the addon maker themselves called it. Theres every likelyhood is NOT called "Open Ramp" but it may be.

Once you have that anaimation name, you use it in the "animate" command.

Quote[/b] ]_plane animate ["animation_name", 1]

or

Quote[/b] ]_plane animate ["animation_name", 0]

edit: typo

Share this post


Link to post
Share on other sites

If the action is available via the action menu (the one at the lower right), this utility might be able to help you pin down the exact syntax to do this via a script.

Share this post


Link to post
Share on other sites

Ok, thanks gents, I think I may have got it, I will update once I get it or stumped..

Share this post


Link to post
Share on other sites

Thank you both VERY much, worked like a charm.Thanks for that tool kronkzy, took me a sec to figure out how to get the blue text to show up but I figured it out. Thanks again!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×