Page 1 of 1

shooting ai vehicles

Posted: Mon Aug 30, 2004 2:07 am
by apostle
hey

is it possible to make axis ai vehicles shoot at the player and allied ai?

if it is can someone PLEASE show me how

i have looked and looked for infomation on this but i couldnt find anything.... sorry if it is somewhere on here and i didnt see it

Posted: Mon Aug 30, 2004 6:31 pm
by lizardkid
well this is complex, it really depends on wich vehicle you want to have shoot. tanks are the easiest.

first of assign a local.target (can even be the player) and call this thread when you have the target assigned...

Code: Select all

tankshooter:

if (isalive self) 
   { 
      self fullstop 
      level.gun = self QueryTurretSlotEntity 0 
      level.gun setAimTarget level.target 
       local.gun waittill ontarget 
      wait 2 
      if (isalive self) 
      { 
         level.gun startfiring 
          
      } 
   } 

end
this'll make the tank fire once i think. havent ever used it but i got the script from Blue60007.

as for halftracks with mg42's i think you need to glue the mg42 to the halftrack and fling on a gunner to make it work. not sure, never doen that either.

the last one is a panzerwerfer wich is only in SH, you'd have to check the t2l2 script to find out what they did. not sure myself.