Monster runs away at sight of player

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!)
User avatar
AshHouswares
Posts: 145
Joined: Fri Jun 03, 2022 11:31 am
Graphics Processor: Not Listed

Monster runs away at sight of player

Post by AshHouswares »

I cannot seem to find anywhere on the wiki that explains this. I'm sure I once pulled this off myself, many years ago using DECORATE but the wiki seems absent from that AI function??? How do I make a monster run from the player on sight?
Jarewill
 
 
Posts: 1741
Joined: Sun Jul 21, 2019 8:54 am

Re: Monster runs away at sight of player

Post by Jarewill »

Are you looking for the +FRIGHTENED flag?
User avatar
AshHouswares
Posts: 145
Joined: Fri Jun 03, 2022 11:31 am
Graphics Processor: Not Listed

Re: Monster runs away at sight of player

Post by AshHouswares »

Jarewill wrote: Fri Dec 16, 2022 11:49 am Are you looking for the +FRIGHTENED flag?
Ahhhh yes that was it. It was a flag! No wonder I couldn't find it in the A_XXX functions. Thanks! Fixed now.

Return to “Scripting”