[Solved] Is there a Light_ForceLightning from 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
peewee_RotA
Posts: 407
Joined: Fri Feb 07, 2014 6:45 am

[Solved] Is there a Light_ForceLightning from zscript?

Post by peewee_RotA »

I see the Light_ForceLightning special, but I was wondering if there was a way to call this functionality with ZScript. I have some other lightning weapon effects and it would be cool if the player could make the sky go bright with this attack.
Last edited by peewee_RotA on Sun May 19, 2024 4:26 pm, edited 1 time in total.
User avatar
phantombeta
Posts: 2182
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Is there a Light_ForceLightning from zscript?

Post by phantombeta »

Since it's an action special, you can just call it directly from ZScript as if it were a function. You can also use A_CallSpecial, but I'd recommend just calling the special directly as a function, since that makes what's being called clearer than using an action special number.
Post Reply

Return to “Scripting”