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 Physics & Dark A.I. & Dark Dynamix / Command "AI Set Entity Attack Distance" not working

Author
Message
Southside Games
9
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 2nd Nov 2013 16:32 Edited at: 3rd Nov 2013 20:13
Hello.

I'm tiring to set how close an AI has to be to attack. The game uses swords so I set the attack range to be right in front of the player with "AI Set Entity Attack Distance"

Problem is is that no effect seems to take place. Using the "AI get entity can see" and "AI Get Entity Can Fire" commands I see that as soon as the player is in there line of sight they can attack right off the bat.

I can work around this. But I would much rather use the native AI commands.


Thanks.


edit:


well I redid that chunk of code and now it seems to work. I can't figure out what was different, But that's how programing goes sometimes I guess.

Login to post a reply

Server time is: 2019-08-21 20:53:00
Your offset time is: 2019-08-21 20:53:00