hi, i am new to scripting and am eager to make an allies script.
i don't know many commands and are wondering since there's a plrcanbeseen command is there a enemycanbeseen command? I am asking this because if there is it should be an easy way to convert this script
;Artificial Intelegence Script
;Header
desc = Strafe Shoot
;Triggers
:state=0,ifweapon=0:state=8,setframe=6
:plrcanbeseen:settarget,rotatetotarget,resethead
:plrdistwithin=200:rotatetoplr,resethead
:state=0,random=20:state=9
:state=0,shotdamage=1:rotatetoplr,state=7
:state=0,ifweapon=1,plrcanbeseen:state=2
:state=1:incframe=3,strafe=-90,rotatetoplr
:state=1,frameatend=3:state=0,animate=1
:state=5:useweapon,rundecal=6,state=0
:state=4:state=5
:state=3:state=4
:state=2:state=3
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=0,animate=1
:state=7,random=1:state=6,setframe=4
:state=7:state=1,setframe=3
:state=8:incframe=6
:state=8,frameatend=6:state=0,reloadweapon,sound=audiobank\guns\reload.wav
:state=9,plrcannotbeseen:state=10
:state=9:state=0
:state=10,random=1:rotatetoplr,strafe=135
:state=10,random=1:rotatetoplr,strafe=-135
:state=10,random=1:rotatetoplr,strafe=-65
:state=10,random=1:rotatetoplr,strafe=65
:state=10:state=7
;End of Script
into the first step of creating an ally script.
NOTE:if the code is out side the code snippet it is because i am not sure how to use it.
dodulee du du!