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 / Am I doing something wrong?

Author
Message
Tennz
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 20th Sep 2009 00:07
I am making my own AI shoot n Kill script, but the roadblock I run into, The AI either shoots rapid fire or If I place the rateoffire condition in the mix its very slow shooting from the AI. so what am I doing wrong? when I use the shoot script or roving guard script it works fine and the rate of fire is normal.
here is part of the coding here.



If you need more let me know.
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 21st Sep 2009 05:17
you forgot the first colon- that's youre first problem. and the script should start on state 0.
also put in- :state=2,ifweapon=0:state=3,setframe=6
:state=3:incframe=6
:state=3,frameatend=6:state=2

or just :state=2,ifweapon=0:state=3
:state=3:reloadweapon,state=2

that seems to work for me.
Tennz
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 21st Sep 2009 07:32
thx, but that was just a piece of the script the part I thought was the problem, I just forgot to paste that colon, its my fault. Acutally I found the solution to the problem in the rate of fire box(I guess in the lastest update higher is rapid and lower is slow shoot) but yea it works fine.

Btw: I been trying to limit the amount of steps an AI can take before hitting a wall to change direction, with no sucess is that doable? whts the point of the variable in movefore= (x) <------

been searching around for that no luck.

Login to post a reply

Server time is: 2024-11-25 06:36:07
Your offset time is: 2024-11-25 06:36:07