Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
WarGoat
14
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 5th Feb 2007 00:47
Hi, How would I make an entity do a melee attack. When I try to set the ai set antity attack distance to, lets say, 5, the monster attack at a more greater distance. here's my code:




Windows XP,pentium IV, 3.0 MGZ, 1024 mb memory, 256 mb ATI Radeon PCIE X700 Pro 'sett squadron back on the assault'
Paul Johnston
TGC Developer
16
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th Feb 2007 18:52 Edited at: 5th Feb 2007 18:56
The avoid distance should be less than the attack distance otherwise the entity will try to avoid its target before it gets into attack range.

The AI radius should also be less than half the attack distance, as each entity has a radius around it and neither is allowed to enter the radius of another entity.

Modify these three values until you get the behaviour you want.

EDIT: Moved to the correct board

Login to post a reply

Server time is: 2019-08-18 04:42:25
Your offset time is: 2019-08-18 04:42:25