How can detect a player collision with a train?
Posted: Sat Mar 17, 2018 3:54 am
Hi all:
I just took the first modding tutorial, spent some time reading over the APIs, and studied the events.
I'm trying to make a mod called "Nice Try, Train" that will either halt the train on collision with a player, or have the train completely explode on high speed contact with a player. Kind of a Thor/Hulk situation.
I've found on_damage event, however, some initial testing seems that the event is not called before on_player_died, so I cannot respond and prevent the sudden death.
Can you lend me any tips?
Thanks
I just took the first modding tutorial, spent some time reading over the APIs, and studied the events.
I'm trying to make a mod called "Nice Try, Train" that will either halt the train on collision with a player, or have the train completely explode on high speed contact with a player. Kind of a Thor/Hulk situation.
I've found on_damage event, however, some initial testing seems that the event is not called before on_player_died, so I cannot respond and prevent the sudden death.
Can you lend me any tips?
Thanks