How do I make an enemy knock me back without hurting me?

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!)
TheyComminUp
Posts: 2
Joined: Sun Jun 03, 2018 2:25 pm

How do I make an enemy knock me back without hurting me?

Post by TheyComminUp »

This is in decorate and im trying to make it so that enemies deal significant knockback without doing tons of damage. Ive tried multiple things and ive looked everywhere on the ZDoom wiki but nothing ive tried works. Any help?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: How do I make an enemy knock me back without hurting me?

Post by wildweasel »

https://zdoom.org/wiki/A_RadiusThrust - This might be useful to you; it's a variation on A_Explode that does no damage.
TheyComminUp
Posts: 2
Joined: Sun Jun 03, 2018 2:25 pm

Re: How do I make an enemy knock me back without hurting me?

Post by TheyComminUp »

A_Radiusthrust didnt work but i found A_BLAST to work fine. Thank you!

Return to “Scripting”