Jettison cargo/escape pod - no event handler?

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Jettison cargo/escape pod - no event handler?

Post by Capt. Murphy »

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?
[EliteWiki] 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
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Jettison cargo/escape pod - no event handler?

Post by Eric Walch »

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?
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.
Maybe we should have a specific handler for dumping cargo in future. (Like for scooping)
Post Reply