Hi,
I've just noticed that this.shipSpawned doesn't fire when a cargo/escape pod is jettisoned. Should it? If not can we have a this.shipJettisoned handler after MNSR? Or alternatively can this.shipLaunchedEscapePod fire if an escape pod is jettisoned?
Jettison cargo/escape pod - no event handler?
Moderators: winston, another_commander, Getafix
- Capt. Murphy
- Commodore
- Posts: 1127
- Joined: Fri Feb 25, 2011 8:46 am
- Location: UK South Coast.
Jettison cargo/escape pod - no event handler?
Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Jettison cargo/escape pod - no event handler?
this.shipSpawned is (almost) foolproof and should always fire when a ship is first seen in-flight by the system. That means that only for new pods this handler fires, and not for pods that were previously scooped.Capt. Murphy wrote:Hi,
I've just noticed that this.shipSpawned doesn't fire when a cargo/escape pod is jettisoned. Should it? If not can we have a this.shipJettisoned handler after MNSR? Or alternatively can this.shipLaunchedEscapePod fire if an escape pod is jettisoned?
Maybe we should have a specific handler for dumping cargo in future. (Like for scooping)
UPS-Courier & DeepSpacePirates & others at the box and some older versions