I need this script to be checked for errors, hence:
Quote: "I have another script that needs checking."
This one was asked about by G4fan and I said I'd give it a try. This script is only partial. (to protect against stealer's).
;scripted by: spex_guy
;Artificial Intelligence Script
;Header
desc = (once a light goes off, guard checks it out, if plr is spotted, he opens fire)
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointreverse
:waypointstate=5:animate=1,waypointstop
:state=0,rotateheadrandom=85:plrcanbeseen:state=5
:state=2:plrcannotbeseen,state=3,animate=1:state=0
:state=3:lighton,state=5,sound=audiobankuserlighton.wav,runfpi=passive.fpi,state=4
:state=4:lightoff,sound=audiobankuserSplinterCellElCargo.wav,rotatetoplr,animate=2:plrcannotbeseen,losetarget=1,state=5
;End of Script
I want to do this script with ambience instead of the lighton and off thing. Does that apply to lights? (Like if a guy is inside the lights reach, or the ambience set in the global script.) I don't even think thats possible, really.
I did do something funny with the waypoints. I made it so when a guard stops at a waypoint, he crouches down. (As if he's looking for someone.)
This is only a beta script, if you care to think of it that way.
Also, if a music command is called up while anoher is still playing, will it stop to let the other one go?
This probably has loads of mistakes. Thanks. The computer re-did the slashes in the addresses.
Regards,
spex
Go here!
http://forum.thegamecreators.com/?m=forum_view&t=94201&b=19
Makes the sense of my location!