shipKilledOther eventHandler wiki entry

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

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

shipKilledOther eventHandler wiki entry

Post by Capt. Murphy »

Hi,

Just a heads up the following some testing and a quick peek at the source I've updated this handlers entry on the wiki (missing argument for the damageType in the documentation and added it to the worldScripts event handler page. It fires on player kills in a worldScript context).

On both the shipScript and worldScript pages...

Code: Select all

The shipKilledOther handler is called when a ship kills an other ship. whom the identity of the ship that was killed. damageType is the type of damage. (Handler added in test version 1.75)

this.shipKilledOther = function(whom,damageType)
{
     // Your code here
}
@Maik - I have updated the Alioth copy and not yours - not quite sure what the score is at the moment with automatic synchronisation and you mentioned that they'd got out of sync.
[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
maik
Wiki Wizard
Wiki Wizard
Posts: 2025
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: shipKilledOther eventHandler wiki entry

Post by maik »

Thanks for thinking about it, but no need to manually update my copy, once I get around to setting up the copy process these changes would be overwritten. I hope to find time still before Easter.
Post Reply