Page 1 of 1

Rocket control in SA via modding api

Posted: Tue Nov 19, 2024 8:51 pm
by Joserichi
I have been wondering how can you control a rocket with the modding api. There is the event "on_rocket_launch_ordered" but reading the docs I don't see any "destination" or similar either on the rocket or on the silo. Also on the silo there is the launch_rocket method, but it doesn't accept any parameter and just launches the rocket to the same planet it is sent from. Am I missing something very obvious or how does the game handle where a rocket goes?

Re: Rocket control in SA via modding api

Posted: Wed Nov 20, 2024 11:35 pm
by s6x
Unfortunately, I don't think you can control that stuff via Lua at the moment.

(Most of the development time for this mod was spent on working around this issue...)

Re: Rocket control in SA via modding api

Posted: Fri Nov 22, 2024 7:45 pm
by Joserichi
Aw, seems like we were trying to do the same, what a shame. Although I don't know why it needs to be so complicated, seems like it should be basic funcionality that should have been implemented with the expansion and was just left with the "default" fields that existed in the base game.

Re: Rocket control in SA via modding api

Posted: Sun Nov 24, 2024 3:04 pm
by Vulteran
I was also looking into how to specify a destination for a rocket via the api and came up short.

Are there plans to add the ability to set the destination via the lua API in the future?