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 / Need help with this AI

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 16th May 2009 13:15 Edited at: 17th May 2009 00:22
Hi everyone

starting my AI I had this problem, the AI is supposed follow player to a very close distance to use a melee attack but on running to the player it shoots a MG normally, the problem is while running I can't stop the run animation for reloading so he looks like he's skating while reloading here's wut I got so far..




~Level my Dragon~[/url]
Best Wishes..
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 17th May 2009 00:21
anyone?


~Level my Dragon~[/url]
Best Wishes..
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 17th May 2009 08:26
the reload animation is just that, there is no move while reloading animation. and it looks like he's ... wait nvm
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 17th May 2009 09:21 Edited at: 17th May 2009 09:22
?? wut ??


~Level my Dragon~[/url]
Best Wishes..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th May 2009 11:06
Have you by chance read the tutorial I wrote on scripting AI? It's in the Community Guide. I cover everything that it looks like you're trying to do here.


Also, I believe the "movetotarget" command makes the entity move without needing to be called again, so he'll continue to move even after leaving state 1. That may be why he's still moving while reloading.


The one and only,


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 17th May 2009 12:24 Edited at: 17th May 2009 12:29
ya actually I read it a couple of times but here's the difference, say I tell the AI to move 6 blocks forward if the player is further than 600, now if the player moves further before the command is done (say 4 more blocks) the AI would still move only 6 blocks forward (cause the condition plrfurther=600 is still true) leaving 4 blocks distance between him and the player

hope u get wut I meant...


~Level my Dragon~[/url]
Best Wishes..
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 17th May 2009 12:25 Edited at: 17th May 2009 12:29
Quote: "Also, I believe the "movetotarget" command makes the entity move without needing to be called again, so he'll continue to move even after leaving state 1. That may be why he's still moving while reloading."

well is there a way to maybe stop executing this command?


~Level my Dragon~[/url]
Best Wishes..
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 17th May 2009 19:21
solved.. used (freeze) just before the reloading animation starts..
TY


~Level my Dragon~[/url]
Best Wishes..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th May 2009 01:33
Glad you got it working.


The one and only,


Login to post a reply

Server time is: 2024-11-25 01:53:51
Your offset time is: 2024-11-25 01:53:51