I have a script copied from the pace.fpi script and have added a sound to it. This script is the main script for the entity (guard).
;Artificial Intelligence Script
;Header
desc = Hunt And Pace Waypoints
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:nearactivatable=0:settarget,activatetarget=2,animate=1,state=0
:state=0:state=1
:state=1,plrcanbeseen:settarget,state=2
:state=1,random=20:rotateheadrandom=65
:state=1,random=60:rotatetoplr
:state=1,shotdamage=10:settarget,waypointstop,animate=1,rotatetotarget,resethead,state=4
:state=1,noiseheard=5:rotateheadrandom=85
:state=2:waypointstop,rotatetoplr,state=3,sound=audiobank\voices\axis\attack\atk_G_001b.wav,shootplr
:state=3:animate=1,waypointstart,state=0
:state=4,plrcanbeseen=46:settarget,state=2
:state=4,random=20:animate=2,waypointstart,state=1
;End of Script
The guard is spawned from a trigger zone and when I hit this zone I hear the sound file. The guard walks the set waypoints and when it sees the player, it plays the sound and runs toward the player shooting just as it is suppose to.
I am trying to understand why I hear the sound when the guard is spawned when I hit the trigger zone. Is this normal?