I have this script here. It is two scripts put together, Corno_1's script and Viral Outbreak Pincher Melee attack.
The script is a Pace script and when the player is in range the entity hunts the player. It works nicely, but when the entity attacks, you lose health but the entity has no attack animation. I tried to add the Viral Outbreak melee animation it still doesn't work. How do I fix this?
I'm useless when it comes to FPSC scripting.
;Artificial Intelligence Script
;Triggers
desc = Zombie (Pace, Hunt, Melee)
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;start follow waypoints
:state=0:waypointstart,state=1
;if npc see you (from a far distance too)
;delete the ';' so your npc see you earlier when no walls are in the field of view
;:state=1,plrcanbeseen:settarget,rotatetotarget,state=2
;notice player if he is 5 segements away
:state=1,plrdistwithin=500:settarget,rotatetotarget,state=2
;notice player if he shoot on the npc
:state=1,shotdamage=10:settarget,animate=1,rotatetotarget,state=2
:state=2:waypointstop,movetotarget,state=3
:state=3,plrdistfurther=90:rotatetoplr,movefore=2,animate=2
:state=3,plrdistfurther=500:animate=1,state=0
:state=3,plrdistwithin=90,rateoffire:rotatetoplr,setframe=8,state=4
:state=4,framebeyond=8 60,plrdistwithin=100:plraddhealth=-10,sound=audiobank\misc\bite.wav,state=5
:state=4:incframe=8,rotatetoplr
:state=4,frameatend=8:state=1
:state=5:incframe=8
:state=5,frameatend=8:state=1
;MELEE ATTACK 1 (DOUBLE SLASH ATTACK/WALKING)
:state=1,plrdistfurther=65:rotatetoplr,movefore=10,animate=93
:state=1,plrdistwithin=65:rotatetoplr,setframe=95,state=7
:state=7,framebeyond=95 23,plrdistwithin=70:plraddhealth=-5,sound=audiobank\viral_outbreak\jaws_bite.wav,state=8
:state=7:incframe=95,rotatetoplr
:state=7,frameatend=95:state=5,sound=audiobank\viral_outbreak\jaws_intro.wav
:state=8,framebeyond=95 75,plrdistwithin=70:plraddhealth=-2,sound=audiobank\misc\melee.wav,state=9
:state=8:incframe=95
:state=8,frameatend=95:state=5
:state=9:incframe=95
:state=9,frameatend=95:state=5
;End of Script