Page 1 of 1

Code That Affects AI Only [Solved]

Posted: Sun Jun 29, 2014 10:29 am
by Lorul1
I know that there is something that you can put before scripts so that only humans are affected by it. i think its something like "if character is human" BUT I'm looking for something that I can use so only the AI (or computer players) can be affected by. In other words I have a region that I only want the AI to be effected by, how do I do this ?

Re: Code That Affects AI Only

Posted: Sun Jun 29, 2014 10:36 am
by razac920
instead of

Code: Select all

  if IsCharacterHuman(player) then
  [your code]
  end
write

Code: Select all

  if not IsCharacterHuman(player) then
  [your code]
  end

Re: Code That Affects AI Only

Posted: Sun Jun 29, 2014 10:36 am
by Locutus
if not IsCharacterHuman(player) then ;)

Edit: Dang, apparently I got ninja'd by half a second or so :runaway:

Re: Code That Affects AI Only

Posted: Sun Jun 29, 2014 12:18 pm
by Lorul1
Hahaha
Thanks guys 8)