I would like to have the ability to set SpawnLoc to the target location for weapons and TriggeredEffects alike for an immediate targeted hit. Setting thetarget can be done by a targetor or with normal part targeting; affected only by filters.
Is there a reason you can't use BeamEmitter for this, similar to flak?
Walt Maybe he wants to have something that hits an internal part? (Sounds a bit OP, but it's Lafiel so who cares)
Yes, it's the only way regardless whether it's for beam or shots to hit parts on the same ship by another internal part.
Try SourceShipCollisions = false and ClipRangeToTarget = true.
SourceShipCollisions = false
ClipRangeToTarget = true
Already did that. It worked visually but it doesn't hit. When I went further down that line it started to crash for some unknown mediaeffects and other kinds of wierdness.
No idea why it wouldn't hit, I would need to see the code.
Anyway, do you want to spawn an actual bullet, or just some hit/media effects?
The code is chaotic as I went from patching one problem after another so the current version might not show a specific previous problem. It would be troublesome to restore them. But I could give you tomorrow a "cleaner version". For this specific case I needed the beam as well as the HitEffect but I also see a few other applications which would only need a TriggeredEffect. And it could serve to spawn crew later on...