Add any player riding a rocket to the on_rocket_launch_ordered and on_rocket_launched events

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Muppet9010
Fast Inserter
Fast Inserter
Posts: 137
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Add any player riding a rocket to the on_rocket_launch_ordered and on_rocket_launched events

Post by Muppet9010 » Sat May 18, 2019 1:11 am

When the on_rocket_launch_ordered and on_rocket_launched events trigger could any player who is riding the rocket be included as an attribute.
The players are known within the game code to be passengers of the rocket.

Ideally the rocket entity get_passenger() and player entity vehicle() functions would also handle this state, but this looks to be far more work and isn't helpful in my use case.


The intended use is to script events for when the player is leaving and has left the player via a rocket, i.e. teleport them to another surface.

Post Reply

Return to “Modding interface requests”

Who is online

Users browsing this forum: No registered users