how to make enemy never move in pain 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!)
spforce
Posts: 93
Joined: Fri Jan 31, 2014 6:02 pm

how to make enemy never move in pain state

Post by spforce »

i need this for actor that is non moving monster in a_chase see state isnt moving a non moving actor the problem is when getting to pain state the enemy is getting pushed back and i cant find in zdoon wiki anything to use to prevent this as i want it to never move also when in pain state when enemy take damage
Jarewill
Posts: 1326
Joined: Sun Jul 21, 2019 8:54 am

Re: how to make enemy never move in pain state

Post by Jarewill »

I don't think I follow completely.
You want enemies to not be kicked back with damage?
If so, you can give them the +DONTTHRUST flag.
spforce
Posts: 93
Joined: Fri Jan 31, 2014 6:02 pm

Re: how to make enemy never move in pain state

Post by spforce »

yes i want it to not get kicked back when it takes damage
i will try now the flag to see if it does the work
thanx
spforce
Posts: 93
Joined: Fri Jan 31, 2014 6:02 pm

Re: how to make enemy never move in pain state

Post by spforce »

thanx it did the work
thanx alot

Return to “Scripting”