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,600
s5ehfr9
4.7 years ago
Tags
Question3 Comments
- Log in to leave a comment
-
9,660 AnotherFireFox
I believe
ModApi.Scenes.ISceneManager
do the job. You can do likeif (Game.InFlightScene)
thing -
Dev Pedro
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.