Laser beam (MODELDEF & Zscript)

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
Nailz the Ravager
Posts: 94
Joined: Tue Jun 12, 2018 12:29 pm
Graphics Processor: Not Listed

Laser beam (MODELDEF & Zscript)

Post by Nailz the Ravager »

How to create laser beam using 3d models and Zscript?
User avatar
Cherno
Posts: 1311
Joined: Tue Dec 06, 2016 11:25 am

Re: Laser beam (MODELDEF & Zscript)

Post by Cherno »

Spawn the beam consisting of a small cube model in the midpoint between start and end, then scale it's forward axis so it stretches along the whole distance.
Post Reply

Return to “Scripting”