Page 1 of 1

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

Posted: Sat May 18, 2019 1:11 am
by Muppet9010
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 planet via a rocket, i.e. teleport them to another surface.

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

Posted: Thu May 23, 2019 8:27 pm
by Bilka
Muppet9010 wrote:
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.
Okay, added for the next version.