Ai doesn't shoot !!! and imune command
Posted: Fri Feb 20, 2004 12:09 pm
hy guys !!!
In my single player map i want my Ai (allied) shoot at a nebel with a panzerchreck after a run.
but if the run goes right, he doesn't want to shoot at the nebel.
I tried to make him aiming the target with
$capi setaimtarget local.target
and after i tested diff?rents things like
$capi exec global/shoot.scr ==> it shoot without aiming
$capi exec global/attack.scr==> look like in defensive position but never shoot.
$capi exec global/shootifseen.scr==> it say me that it can't see the target because of nill listener so i put a script object instaed of my nebel (nothing more)
$capi exec global/aim_and_shoot.scr ==> i get this error message.
self aimat local.target (global/aimat.scr, 4)
self ^
in the last case, i remove the first line $capi setaimtarget because it's in the aim_and_shoot.scr
thx for your help!
my second question
i would like to know how does work the immune command
does it work like a colander?
so if i want to protect my nebel from bullet do y have to put 2 triggers ? one with the selection and one for the health?
thx a lot
Tropheus
In my single player map i want my Ai (allied) shoot at a nebel with a panzerchreck after a run.
but if the run goes right, he doesn't want to shoot at the nebel.
I tried to make him aiming the target with
$capi setaimtarget local.target
and after i tested diff?rents things like
$capi exec global/shoot.scr ==> it shoot without aiming
$capi exec global/attack.scr==> look like in defensive position but never shoot.
$capi exec global/shootifseen.scr==> it say me that it can't see the target because of nill listener so i put a script object instaed of my nebel (nothing more)
$capi exec global/aim_and_shoot.scr ==> i get this error message.
self aimat local.target (global/aimat.scr, 4)
self ^
in the last case, i remove the first line $capi setaimtarget because it's in the aim_and_shoot.scr
thx for your help!
my second question
i would like to know how does work the immune command
does it work like a colander?
so if i want to protect my nebel from bullet do y have to put 2 triggers ? one with the selection and one for the health?
thx a lot
Tropheus