Hello guys , I've been working on some DAI scripts , I'm trying to make 2 scripts :
1- Ally script , it just stays idle and shoots any enemy unit passing near to it , something like a turret . I gave it the default ally appear from DAI folder and I gave it this as a main script :
;//Requires v1.17+ DarkAI
desc = DarkAI generic shoot and melee with ally command
;Triggers
:always:localvar=1
:nearactivatable=0:settarget,activatetarget=2
:state=0:aiusefullaim=1,setvar=0
:state=0:setaiactive=1,alwaysactive=1,reloadweapon,state=1
:state=1,ifweapon=1,aitargetdistwithin=300,rateoffire:aisettarget,useweapon,rundecal=6,airotatetotarget
;End of Script
2- Enemy script , it just follows waypoints and nothing else . I gave it the enemy appear from DAI folder , and this as its main script :
;Artificial Intelligence Script
;Header
desc = Follow Waypoints
;Triggers
:always:localvar=1
:nearactivatable=0:settarget,activatetarget=2
:state=0:aiusefullaim=1,setvar=0
:state=0:setaiactive=1,alwaysactive=1,reloadweapon,state=1
:waypointstate=0:animate=5,waypointstart
:waypointstate=3:animate=5,waypointnext
:waypointstate=4:animate=5,waypointrandom
:waypointstate=5:animate=5,waypointreverse
;End of Script
This is what happens : The ally shoots once it spawns and then freezes , the enemy follows the waypoint as it should but the ally doesn't see it as a target .
Any suggestions ?
"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest