Can I limit this property of Monsters?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
Post Reply
slayer87
Posts: 13
Joined: Wed Dec 22, 2021 8:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Can I limit this property of Monsters?

Post by slayer87 »

I've been going over some documentation, and the only thing I can find that relates to a monster's "range" of attack is A_JumpIf. (at least its used to switch states depending on proximity)

Is "range" for monster attacks hardcoded?

Is there anything I can implement, ACS or anything, that could limit a monster's range? (specifically a ranged monster)
User avatar
Logan MTM
Posts: 678
Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil

Re: Can I limit this property of Monsters?

Post by Logan MTM »

MeleeRange Actor Propertie?
MeleeRange value
Specifies the maximum distance to a target where a melee attack inflicts damage. Distance is calculated from the attacker's center to the target's bounding box.
All monster melee attacks use this value for melee range. This include A_BasicAttack, A_ComboAttack, A_CustomComboAttack, A_CustomMeleeAttack, A_MeleeAttack, and so on.
Default is 44.
Post Reply

Return to “Scripting”