Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: [Scripting] Event hooks for weapons and others  (Read 623 times)

creature

  • Captain
  • ****
  • Posts: 400
    • View Profile
[Scripting] Event hooks for weapons and others
« on: November 17, 2019, 10:52:27 PM »

I'm aware of the "onHitEffect" tag I can add to projectile and "everyFrameEffect" for weapons, and I was wondering if there are others, like one that fires when the projectile is destroyed by pd, or when a weapon fires.

Also, I notice these calls when hullmods are mounted, "applyEffectsBeforeShipCreation" and "applyEffectsAfterShipCreation", and I was wondering if there was a similar function that could be tacked onto weapons?
Logged