Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / AI Target

Author
Message
Igglepud
14
Years of Service
User Offline
Joined: 14th Aug 2010
Location:
Posted: 3rd Sep 2010 05:30


Yes, I searched first. No, I did not find anything that answered my question.

I'm trying to get an AI entity to attack another entity. When I run this, the entity still runs around chasing the target, but the shots still hurt me.

Also, how do I use Dark AI in FPSC? Going to head over to that forum, but I don't see anything in the program for it.

Nbt
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 3rd Sep 2010 05:53
Top of this section is a sticky regarding Dark AI and how to use it.

http://forum.thegamecreators.com/?m=forum_view&t=172899&b=23

Igglepud
14
Years of Service
User Offline
Joined: 14th Aug 2010
Location:
Posted: 3rd Sep 2010 06:01
I've already been there.

Igglepud
14
Years of Service
User Offline
Joined: 14th Aug 2010
Location:
Posted: 3rd Sep 2010 06:02
And I think I'm making it to hard on myself...does that table list all of the DAI commands I can use in a script?

And if so, my FPI editor doesn't list any of them.

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 3rd Sep 2010 06:31 Edited at: 3rd Sep 2010 06:32
You set the target with the settargetname=kid, right?

So why use all the other settarget actions like in state=0 and state=1?

Quote: ":state=0:state=1,settarget"


Quote: ":state=1,plrcanbeseen:settarget"


Get rid of those two settarget actions and then try it.

Just remove the action from the first line (state=0 settarget)
and comment out the second line (state=1 settarget)

so they end up like this...

Quote: ":state=0:state=1"


Quote: ";:state=1,plrcanbeseen:settarget"


Note the semicolon at the beginning of the line which is commenting out the second one.

   Conjured Entertainment

 WARNING: Intense Madness
Igglepud
14
Years of Service
User Offline
Joined: 14th Aug 2010
Location:
Posted: 3rd Sep 2010 08:00
Somehow I was under the impression you had to use a settarget command after the other one. All better. Now, how do I get them to stop shooting when the target is dead?

Login to post a reply

Server time is: 2024-11-24 19:30:11
Your offset time is: 2024-11-24 19:30:11