I want to make a mod that requires a custom script to be run on my mod part in flight mode, but I cannot find the documentation for the mod APIs; the official tutorial covers little about custom scripts and is a little outdated.
[Modding] Where should I put the script component if I want to make it run in flight mode?
8,859
s5ehfr9
5.6 years ago
Tags
Question3 Comments
- Log in to leave a comment
-
9,685 AnotherFireFox5.6 years ago
I believe
ModApi.Scenes.ISceneManagerdo the job. You can do likeif (Game.InFlightScene)thing -
Dev Pedro5.6 years ago
If you need help and you are interested you can join the Discord modding community
No Upvotes
Log in in to upvote this post.
If its the part modifier script you are talking about, it will be automatically added to your part at runtime.