Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to: script Artificial Intelligence
#59
(06-11-2012, 01:42 PM)YinYin Wrote:  Note that the ego() function is not the main AI function of your character and thus needs to 'report back' to the function it has been called from. This is done with return 0;. The 0 will give the control back to the basic AI (the id() function). If you write return 1; you can retain control in the ego() function.


Simply run the script and at the end return 1. As program ends interpreting your script, it will give control back to the original ai till the end of frame.
Reply
Thanks given by:


Messages In This Thread
RE: How to: script Artificial Intelligence - by Gad - 04-09-2017, 04:50 PM



Users browsing this thread: 1 Guest(s)