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.

Dark GDK / [GDK2.0 DarkAI] AI_SetEntityAttackDistance() not working

Author
Message
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 18th Jul 2012 18:31
I created 2 entities and made one friendly and the other enemy. They "attack" each other, but they slowly move away from each other.
It doesn't matter what I set the AI_SetEntityAttackDistance() value to, they do the same thing. I'm trying to get them to melee with each other-- not shoot guns at each other.

Does anyone know what I'm doing wrong?

The fastest code is the code never written.
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 19th Jul 2012 00:18
Have you set:

Quote: "void AISetEntityAvoidDistance ( int iEntityID, float fDistance ); "


correctly?
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 19th Jul 2012 00:40
Yes. I set them to the save value.

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-03-29 12:30:03
Your offset time is: 2024-03-29 12:30:03