What events are called when a player goes from planet to space platform and vice versa?

Place to get help with not working mods / modding interface.
Pikachar
Inserter
Inserter
Posts: 34
Joined: Wed Apr 19, 2023 9:16 pm
Contact:

What events are called when a player goes from planet to space platform and vice versa?

Post by Pikachar »

As the title says: What events are called when a player goes from planet to space platform and vice versa?
Currently working on a mod that requires moving some entities around with the player and I'd like to make sure that I've got all my bases covered.
Currently got coverage for the teleport event, but want to make sure that there's not something I'm missing.
Hope you're having a wonderful day!
~Pika
eugenekay
Filter Inserter
Filter Inserter
Posts: 825
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: What events are called when a player goes from planet to space platform and vice versa?

Post by eugenekay »

Event Trace is very helpful for this sort of thing.

Doing a quick trip to Orbit I can see:
  • on_rocket_launch_ordered NOTE: The Player can still exit the rocket at this point!
  • on_selected_entity_changed
  • on_gui_closed
  • on_rocket_launched
  • on_player_changed_position (LOTS of these, probably not very useful to track)
  • on_cargo_pod_finished_ascending
  • on_player_changed_surface
  • on_cargo_pod_finished_descending
  • on_player_driving_changed_state
  • on_player_controller_changed
  • on_cargo_pod_delivered_cargo
  • on_selected_entity_changed
Good Luck!
Post Reply

Return to “Modding help”