Quote: ";Artificial Intelligence script desc= Police script by james ;state=1,PLRINGUNSIGHT:state=1,WAYPOINT START ;state=1,shotdamage,:state1,SPAWNON,ROTATEPLR,SHOOTPLR ;state=1,IFPLAYERTRAIL=1,:state=1,FOLOWPLR ;state=1,PLRDISTANCE=10:state=1,RUNFPI=Police.fpi ;End of script "
Quote: "if i have got a few things wqrong in the script please can some one correct them "
Well, this is gonna take a while to type out...
A: Do not mix caps and lower case, it confuses FPSC...
B: Some commands, like WAYPOINTSTART, have been cut up, so they won't work....
C: Police.fpi, is that the name of
this script or another, as if it is this script, you will just loop it...
D: Your states are all one, try making the part where he is searching state=1, then is shot, so goes into state=2,etc,etc....
E: You're only just actually spawning him in line 2, after he's supposed to have searched the player out....
F: You've left commas after some conditions, which don't have conditions after them.....
G: You've put semi-colons at the start of the lines instead of colons....
H: You've put
rotateplr, which should be
rotatetoplr, also, you missed out an l in
followplr, and
plrdistance should be
plrdistwithin, also, you might want to set that
plrdistwithin to about 300...
I: About saving it as an fpi, see the video in the download...
It's great that you're trying to learn, I recommend you have a good read up on Plystire's tutorials in Nickydude's guide....
Here's a more refined version of your script:
;Artificial Intelligence script
;Header desc=Police script by james
;Triggers
:state=1,plrgunsight:state=2,waypointstart
:state=1,ifplayertrail=1:state=2,followplr
:state=2,shotdamage:state3,rotatetoplr,shootplr,state=3
:state=3,plrdistwithin=300:state=1
;End script