Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ego() messes up stock AI
#2
Afaik there is no way to build upon an existing AI.

You either have to rewrite everything based over template AI or a blank ai. Or use stock AI for that character.

(06-11-2012, 01:42 PM)YinYin Wrote:  The id() function - this replaces all the characters AI and gives you control over everything it does.

Code:
void id(){}
Always static.

(06-11-2012, 01:42 PM)YinYin Wrote:  The ego() function - this function will be called by the original basic AI in case you do not use an id() function.
Code:
int ego(){return 0;}
Template/Bandit ai.

Ref: https://www.lf-empire.de/forum/showthread.php?tid=7946
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:


Messages In This Thread
ego() messes up stock AI - by zort - 11-12-2018, 07:49 PM
RE: ego() messes up stock AI - by mfc - 11-13-2018, 10:10 PM



Users browsing this thread: 1 Guest(s)