Hi guys,
Need a little help on this one...
I basically want a script file attached to an enemy character that speaks out to the player once the enemy has seen the player.
I made this modification to the script below to do this, But it doesn't work!
;-=\\\Script for zombie character
:state=0:waypointstart,setframe=19
:state=0,plrwithin,plrdistfurther=601:state=0
:state=0,plrwithin,plrdistwithin=600:state=20
:state=1,plrcanbeseen:movefore=10,animate=3,state=20
:state=1,shotdamage=1:movefore=10,animate=3,state=20
;-=>>>WAYPOINTS<<<=-
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;///PLR FOUND\\\
:state=20,plrdistfurther=20,plrcanbeseen:sound=audiobank\Ash\you_shall_die.wav
:state=20,plrdistfurther=20,plrcanbeseen:rotatetoplr,movefore=10,animate=2
:state=20,plrcannotbeseen:state=40
:state=20,shotdamage=1:strafe
:state=20,plrdistwithin=50:state=50
;///Look For Plr\\\
:state=40,plrcannotbeseen,random=3:timerstart
:state=40,plrcannotbeseen,random=3,timergreater=30:rotateheadrandom=50
:state=40,plrcannotbeseen,random=3,timergreater=40:pivotrandom=50,movefore=10,animate=2
:state=40,shotdamage=1:rotatetoplr
:state=40,noiseheard=60:rotatetoplr
:state=40:state=20
;///MELEE\\\
:state=50:setframe=6,timerstart
:state=50,random=5:plraddhealth=-5
:state=50,random=4:plraddhealth=-6
:state=50,random=3:plraddhealth=-7
:state=50,random=2:plraddhealth=-8
:state=50,random=1:plraddhealth=-9
:state=50:state=51
:state=51:incframe=6
:state=51,frameatend=6:state=52
:state=52,plrcanbeseen:state=20
:state=52,plrcannotbeseen:timerstart,state=40
:state=53:movefore=10,animate=2
:state=53,timergreater=1000:state=20
The line of code I added is where the sound file is at... What is wrong with this setup?!??
I also entertained the sound setting in the entity Properties as well! I set the property to point to the folder that cantains this sound file as well... But it wouldn't work either...
As an additional note here for clairty's sake... I used the sound property first before writing it into a script file as shown above..
Is there a certain way this has to be done? Any help will be greatly appreciated here, Thank You in advance...
Best Regards,
DoctorWho...