I am making a game , 1st level is a sniper shooting enemies from a building .
I tried to script two soldiers , when the first is dead he activates the second , the second walks in a waypoint to see what happened , and when he gets to the end of the waypoint the alarm sounds and hud appeares , and after 5 seconds new game is made.
here are the two soldiers scripts:
Activator:
;Artificial Intelligence Script
;Header
desc = Follow Waypoints
;Triggers
:waypointstate=0:animate=5,waypointstart
:waypointstate=3:animate=5,waypointnext
:waypointstate=4:animate=5,waypointrandom
:waypointstate=5:animate=5,waypointreverse
:state=0:settargetname=S1,state=1
:state=1,shotdamage=10:activatetarget=1
;End of Script
Activated(named S1):
;Artificial Intelligence Script
;Header
desc = Default Entity Behaviour (Nothing)
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=Pharos\Picturec.png,hudname=Y,hudhide=1,hudmake=display,state=1
:waypointstate=0,activated=1:animate=2,waypointstart
:waypointstate=5:waypointstop,sound=audiobank\music\generic\Alarm.ogg,hudshow=Y,timerstart,state=2
:state=2,timergreater=5000:newgame
;End of Script
The scripts didn't work , please help.
"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest