If I have replaced for example the Baron of Hell with a new monster that does NOT have a melee attack, how can I make it so it doesn't do one? Because currently it reverts to the BARON OF HELL sprites to do a melee attack which one it shouldnt have and second when it does do it, it changes into the previous monster.
How can I fix it please?
Thanks in advance.
How to remove MELEE from a monsters attack?
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!)
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!)
-
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
-
- Posts: 5022
- Joined: Sun Nov 14, 2010 12:59 am
Re: How to remove MELEE from a monsters attack?
Add this to your monster:
Code: Select all
Melee:
Stop
-
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
Re: How to remove MELEE from a monsters attack?
Thank you!Blue Shadow wrote:Add this to your monster:
Code: Select all
Melee: Stop
-
- Posts: 1783
- Joined: Wed Jul 23, 2003 9:22 pm
Re: How to remove MELEE from a monsters attack?
Or you could do this:
This way, it will use the missile attack even when it's in melee range.
Code: Select all
Melee:
Goto Missile
-
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
Re: How to remove MELEE from a monsters attack?
Thank you also! Great help everyone, thanks.
-
- Posts: 660
- Joined: Thu Aug 08, 2013 1:30 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Spain
Re: How to remove MELEE from a monsters attack?
This way has also the same effect:
Decorate code is pretty flexible, as you can see...
Code: Select all
Melee:
Missile:
...