hi everyone,
am tryin to make a very simple ally script and am facing a couple of problems..
here's what I have so far
;Artificial Intelligence Script
;Header
desc = Ally
;Triggers
:state=0:rotatetoplr
:state=0,random=5:rotateheadrandom=65
:state=0,scancodekeypressed=2:settarget,state=1
:state=0,scancodekeypressed=3:settarget,state=2
:state=0,scancodekeypressed=4:settarget,state=3
;Follow Me
:state=1:rotatetoplr,followplr,animate=5
:state=1,scancodekeypressed=3:freeze,state=2
;Hold Position
:state=2:setframe=31,incframe=31,state=0
:state=3:settargetname=plrenemy,settarget,rotatetotarget,state=4
:state=4,ifweapon=1,rateoffire:animate=1,rotatetotarget,freeze,useweapon,rundecal=6
:state=4,ifweapon=0:animate=1,freeze,state=5,setframe=6
:state=5:incframe=6
:state=5,frameatend=6:state=0,reloadweapon,sound=audiobank\guns\reload.wav,state=3
;End of Script
- is there any way to make the ally shoot enemies at well when the enemy is in range without having to press any buttons?
- when the ally kills the player it keeps on firing, how to stop that?
-at last, when the enemy moves the ally keeps shooting the old direction and I have to give the attack command again for it to look in the new direction, I guess this will be solved with problem 2
TY..
~Level my Dragon~[/url]
Best Wishes..