Reflected State

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
User avatar
Custodian
Posts: 63
Joined: Fri Jan 29, 2021 8:24 pm
Graphics Processor: ATI/AMD (Modern GZDoom)
Location: Minneapolis MN, USA
Contact:

Reflected State

Post by Custodian »

Hey everyone. I have a quick question. In DECORATE, Is there way to trigger a state jump when projectiles collide with an actor with the '+RELFLECTIVE' flag? I'd like to modify the behavior of reflected projectiles but haven't had much luck.
User avatar
Apeirogon
Posts: 1606
Joined: Mon Jun 12, 2017 12:57 am

Re: Reflected State

Post by Apeirogon »

Its imposible in decorate, there are no such options/functions/name it.
But you can bypass it with something like "on projectile collision destroy current one and spawn new one with opposite velocity".
Blob
Posts: 3
Joined: Sat Jul 30, 2022 4:30 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Reflected State

Post by Blob »

What would be a good way to do that spawning of a new projectile on collision?
Looks like that would be perfect for what I'm trying to do.
Post Reply

Return to “Scripting”