Home   Help Search Login Register  

Author Topic: Re-enabling AI!!!!????  (Read 578 times)

0 Members and 1 Guest are viewing this topic.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re-enabling AI!!!!????
« on: 27 Feb 2005, 02:23:51 »
I have searched the forum and I found other questions regarding this, but no answers to the question!  After doing a disableAI command, is it possible to "re-enable" the AI and if so how?  Or am I relegated to deleting the disabled loon and recreating a new loon in his place?
« Last Edit: 27 Feb 2005, 02:25:18 by Raptorsaurus »

AK-Chester

  • Guest
Re:Re-enabling AI!!!!????
« Reply #1 on: 27 Feb 2005, 02:52:14 »
After doing a disableAI command, is it possible to "re-enable" the AI and if so how?
Nope, I don't think so.

Or am I relegated to deleting the disabled loon and recreating a new loon in his place?
Yup. Or try using the stop command instead of disableAI.
« Last Edit: 27 Feb 2005, 02:52:52 by AK-Chester »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Re-enabling AI!!!!????
« Reply #2 on: 27 Feb 2005, 09:46:03 »
Quote
Or am I relegated to deleting the disabled loon and recreating a new loon in his place?
Yes you are...
I wonder what went through BIS minds when they made the disableAI a public function, but no function to undo that... ::)

I think even VBS lacks the function to re-enable AI...


Quote
Or try using the stop command instead of disableAI.
doStop (I think stop does not work anymore?? at least that's what some comref claims...) has a few disadvantages, one being that it doesn't stop AI from shooting or reacting in any other way to the enemy and it has some odd bug that makes a unit that has doStop in it's init field automatically face into direction 0, and that can't be changed...
If you setDir the dude he turns back to facing 0... ::)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Re-enabling AI!!!!????
« Reply #3 on: 27 Feb 2005, 10:04:27 »
Quote
it has some odd bug that makes a unit that has doStop in it's init field automatically face into direction 0, and that can't be changed...
If you setDir the dude he turns back to facing 0...
In my experience if instead of setDir you put a doStop and a doWatch in the init file it works, especially if the thing being watched is a long way away, say a bush on the horizon.
« Last Edit: 27 Feb 2005, 10:04:52 by THobson »

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Re-enabling AI!!!!????
« Reply #4 on: 27 Feb 2005, 11:42:23 »
Well, if it was just a question of movement, dostop would be fine (I use that all the time), but in this case I want to disable auto targeting.  I think I will just take the units ammo away and then give it back to him when I want him to target again. ;D  This is easier than deleting and recreating him.  I will consider this solved.

Thanks all!