I have used Dark AI to script these codes for my enemies and allies, but my allied entities rotate AWAY from the enemies and shoot into the wall.
What could be wrong here?
Appear script for ally
;Artificial Intelligence Script
;Header
desc = Instant On
;Triggers
:state=0:setalphafade=100,runfpidefault=1,addally,alwaysactive=1
;End of Script
Appear Enemy Script
;Artificial Intelligence Script
;Header
desc = Instant On
;Triggers
:state=0:setalphafade=100,runfpidefault=1,addenemy,headshot=1
;End of Script
Main ally script
; Dark AI Ally script
; Header
desc = Dark AI taking control of ally
:state=0,aicanshoot=0:state=0
:state=0,aicanshoot=1:state=1
:state=1,aicanshoot=1:aisettarget
:state=1,aicanshoot=1,ifweapon=1:rotatetotarget,useweapon,rundecal=6
:state=1,aicanshoot=1,ifweapon=0:state=2,setframe=6
:state=2:incframe=6
:state=2,frameatend=6:state=0,reloadweapon,sound=audiobank\guns\reload.wav
; End script