This should do it:
Quote: ";Artificial Intelligence Script
;Header
desc = Follow Waypoints, Run Away If Player is nearby
;Triggers
:waypointstate=0:animate=5,waypointstart
:waypointstate=3:animate=5,waypointnext
:waypointstate=4:animate=5,waypointrandom
:waypointstate=5:animate=5,waypointreverse
:nearactivatable=0:settarget,activatetarget=2
:random=20:rotateheadrandom=65
:plrdistwithin=599,plrcanbeseen:settarget,state=2
:state=2:rotatetotarget,rotatey=180,resethead,waypointstop,animate=5,state=3
:state=3:runfore=10
:state=3,random=5:rotateheadrandom=85
:state=3,losetarget=10:state=10
:state=3,plrcanbeseen:settarget,state=2
:state=10:timerstart,state=11,rotatey=180,animate=31
:state=11,timergreater=5000:state=0,animate=5,waypointstart
:state=11,random=5:rotateheadrandom=35
;End of Script
"
That should work
Quote: " How can I make it so the civilians run as soon as the player enters the level as it looks kinda dumb that they just stand there and do nothing till you shoot them "
You can also make them do something, even though that would require a bit more scripting.