[DECORATE][Solved] Seek and chase corpses in radius?

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
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am

[DECORATE][Solved] Seek and chase corpses in radius?

Post by Void Weaver »

Greetings.

I want to make monster with AI which allows him to seek dead bodies in radius and remove the choosen closest to him at melee range. After a some tries I found a cool looking A_CheckProximity, but unfortunately its work based only on strictly assigned actorclass.
Someone person were advices to me to use CPXF_ANCESTOR flag into CheckProx and made ALL monsters as successors of a some "AllMonstry" class. Well, it's works but this is a VERY rude and dangerous solution, since that's a very unfriendly for modding and will provides a lot of headache for any modmaker who will decide to built-in the such monster in own mod, especially if it rpg-mod.
Spoiler: corpseeater decorate
So any suggestions how it can be done in DECORATE with other ways?
Thanks in advance.
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am

Re: [DECORATE][Solved] Seek and chase corpses in radius?

Post by Void Weaver »

Solved by combining of _CheckLOF+_CheckFlag+_RearrangePointers:
_Regurgitator_Doom_Eating.JPG
_Regurgitator_Doom_Spitting.JPG
You do not have the required permissions to view the files attached to this post.

Return to “Scripting”