Code That Affects AI Only [Solved]
Moderator: Moderators
- Lorul1
- Rebel Colonel

- Posts: 562
- Joined: Wed Apr 24, 2013 10:34 pm
- Projects :: Assault on Theed
- xbox live or psn: No gamertag set
- Location: Your House
Code That Affects AI Only [Solved]
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 ?
Last edited by Lorul1 on Sun Jun 29, 2014 12:19 pm, edited 1 time in total.
-
razac920
- 2nd Lieutenant

- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
Re: Code That Affects AI Only
instead of
write
Code: Select all
if IsCharacterHuman(player) then
[your code]
endCode: Select all
if not IsCharacterHuman(player) then
[your code]
end
Last edited by razac920 on Sun Jun 29, 2014 10:36 am, edited 1 time in total.
- Locutus
- 1st Lieutenant

- Posts: 420
- Joined: Fri Jun 04, 2010 10:08 am
- Projects :: Stargate Battlefront Pegasus
- Location: Germany
- Contact:
Re: Code That Affects AI Only
if not IsCharacterHuman(player) then 
Edit: Dang, apparently I got ninja'd by half a second or so
Edit: Dang, apparently I got ninja'd by half a second or so
- Lorul1
- Rebel Colonel

- Posts: 562
- Joined: Wed Apr 24, 2013 10:34 pm
- Projects :: Assault on Theed
- xbox live or psn: No gamertag set
- Location: Your House
Re: Code That Affects AI Only
Hahaha
Thanks guys
Thanks guys
