well...i used the guid mako did for the arc thingy for the railgun
and it works
the problem is..
it won't stop working
i mean that the railgun fired and killed it
ok
and now it has to stop,right?
no
parts are not stoping
and...well that is just stupid now that the gun has no target
any help would be just great
-and yes,i followed the guide just as it says,i hope-
can't stop the trigger
Moderators: th15, Moderators
Problem with triggering on when a weapon has gained a target is that it can only reasonably be stopped after a limited time or after the weapon has lost target. The former is a problem, because it means you shoot x number of times, which may be too few to kill the target, or it may be too many, and you've wasted time and effort. The latter is a problem, because a weapon could gain and lose targets with just a single frame apart, which could be mid-animation.
Instead, create a weapon of the appropriate range and fire rate, set burst size to 0, then set the trigger to start the process on weapon fire. Have it terminate after a single firing sequence, however long that takes (time it). Make sure your dummy weapon's refire rate is at least 1 frame longer than that. I'd recommend adding a few extra just to be safe. The process should trigger again the next time your dummy weapon fires.
Instead, create a weapon of the appropriate range and fire rate, set burst size to 0, then set the trigger to start the process on weapon fire. Have it terminate after a single firing sequence, however long that takes (time it). Make sure your dummy weapon's refire rate is at least 1 frame longer than that. I'd recommend adding a few extra just to be safe. The process should trigger again the next time your dummy weapon fires.