Modding Help Making two specific projectiles collide with each other?

Discussion in 'Starbound Modding' started by Jack Jackerson, Jul 9, 2019.

  1. Jack Jackerson

    Jack Jackerson Space Hobo

    I was looking for a while but couldn't find any examples of something like this being used so I'm wondering if it's possible. Is there a way to detect when a projectile collides with another projectile?

    For example, I have a weapon that has an alt ability to shoot a slow moving energy ball that floats forward constantly. The primary ability shoots a laser that moves much faster.

    What I want to happen is when the laser collides with the slow energy ball, a large explosion occurs.

    Is it possible to make the laser or the ball detect when it is colliding with one another? Or is there even a way to detect if the distance from the projectiles is less than a certain distance?
     

Share This Page