shooting ai vehicles

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
apostle
Private
Posts: 7
Joined: Mon Aug 23, 2004 1:28 am
Location: New Zealand

shooting ai vehicles

Post 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
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Post Reply