Prism Tank split shot

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

Prism Tank split shot

Post by Collegia Titanica »

You remember the prism tank from red alert 2.

I'd like to achieve the same effect.
Once my railgun weapon hits the first enemy, from that point, projectiles are fired towards enemies, only 1 for each enemy, perhaps with a maximum number of rays, if enemies exceed this number, not all of them will be hit. Bonus, it should only target enemies further than (n) units away.
Post Reply

Return to “Scripting”