Projectiles that damage enemies (Essentially, how would I create bullets?)
First step, you will have to edit/create a mover for your projectile in the Data Editor.
You must edit the Motion Phase(s) so that:
-Arrival Test Type is set to Never
(the collision will not be done through the Mover itself, but through a behavior applying various effects including death of the projectile)
-Guidance is set to either Ballistic or Throw
(depends on how you want it to behave... ballistic is the most obvious choice for a standard bullet/rocket)
-Tracking is set to No Hook
(prevents the projectile from dodging/running into anything that comes in range... or so I guess)
Modify the Acceleration, Speed, and Timeout to your convenience, and you should have your projectile going in a straight line. To make it collide properly though, you will need to add a behavior to your Launch Missile actor, so that it will check every 0.xx seconds if there is something to collide with around the projectile. To have a better idea about how to create such a behavior (which is a pain in the you-know-where to explain in a forum, but I remember someone did a tutorial somewhere already), I'd suggest you check how the projectiles -and everything else- from the Lost Viking are done (Data Editor > search for any Behavior starting with SS_ and ending with CollisionCheck... SS_ScourgeCollisionCheck is a good example).
This is the method I use on my own project (search for Ikari Warriors here), you'll see on my latest video how it works ingame. It has its flaws obviously, but this is the closest to a "straight line projectile" I've been able to achieve. It seems not to behave the same with buildings as it does with units, somehow the targeted building destroy the projectile a bit too early (even though damage is still applied correctly). I don't know if it's my work that is responsible or if it's the whole method, though... Anyway, in case you still need help search for tutorials here, I remember at least 2 or 3 topics about this matter which were quite well done.
First step, you will have to edit/create a mover for your projectile in the Data Editor.
You must edit the Motion Phase(s) so that:
-Arrival Test Type is set to Never
(the collision will not be done through the Mover itself, but through a behavior applying various effects including death of the projectile)
-Guidance is set to either Ballistic or Throw
(depends on how you want it to behave... ballistic is the most obvious choice for a standard bullet/rocket)
-Tracking is set to No Hook
(prevents the projectile from dodging/running into anything that comes in range... or so I guess)
Modify the Acceleration, Speed, and Timeout to your convenience, and you should have your projectile going in a straight line. To make it collide properly though, you will need to add a behavior to your Launch Missile actor, so that it will check every 0.xx seconds if there is something to collide with around the projectile. To have a better idea about how to create such a behavior (which is a pain in the you-know-where to explain in a forum, but I remember someone did a tutorial somewhere already), I'd suggest you check how the projectiles -and everything else- from the Lost Viking are done (Data Editor > search for any Behavior starting with SS_ and ending with CollisionCheck... SS_ScourgeCollisionCheck is a good example).
This is the method I use on my own project (search for Ikari Warriors here), you'll see on my latest video how it works ingame. It has its flaws obviously, but this is the closest to a "straight line projectile" I've been able to achieve. It seems not to behave the same with buildings as it does with units, somehow the targeted building destroy the projectile a bit too early (even though damage is still applied correctly). I don't know if it's my work that is responsible or if it's the whole method, though... Anyway, in case you still need help search for tutorials here, I remember at least 2 or 3 topics about this matter which were quite well done.