I am tinkering around with an equipment/mechanics idea (not decided yet). For that I ideally would need to know not only who attacked me (which ship), but also with which weapon, and on which shield (if there was a shield, that is ).
For this, the event handlers I found in the reference (shipTakingDamage and shipBeingAttacked) is not detailed enough. Is there a way to do that which I didn't see, or is my "idea" bound to fail?
If you improve this to handle 4 sides then you can assume the laser hit arrived from that side, so you can look into ship.forwardWeapon or ship.aftWeapon or port or starboard.
The inverse of the above logic is usable to determine that which shield of the player ship facing to the attacker.