Let's say I want a event to happen when the player goes to launch, and this event prevents the player from launching. Is there a way to do this?
For example a player is ready to launch, but right before he does, station security surrounds his ship and closes the hanger door before taking him into custody. Can this be scripted?
I was thinking it would go in the shipWillLaunchFromStation event handler. I just don't know a method that would cancel the launch.
Unfortunately dockPlayer do nothing in shipWillLaunchFromStation, which could be a way to cancel launch in time before the tunnel effect.
If you choose this workaround then also need a check if docking fees is installed and turn it off, like temporary rename the worldScripts["Docking Fees"].shipDockedWithStation function.
Unfortunately dockPlayer do nothing in shipWillLaunchFromStation, which could be a way to cancel launch in time before the tunnel effect.
If you choose this workaround then also need a check if docking fees is installed and turn it off, like temporary rename the worldScripts["Docking Fees"].shipDockedWithStation function.