Home   Help Search Login Register  

Author Topic: Tank and crew handling.  (Read 2041 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Tank and crew handling.
« on: 16 Nov 2003, 23:38:09 »
By using the "fired" EH I can find out the name of the main gun and the machinegun of a tank, but can someone tell me how to order the gunner to fire the machinegun of the vehicle and not the main gun in a script?  :-\

Offline CrashDome

  • Members
  • *
Re:Tank and crew handling.
« Reply #1 on: 17 Nov 2003, 09:52:28 »
from comref:
Code: [Select]
unit selectWeapon weapon
Operand types:
    unit: Object
    weapon: String
Compatibility:
    Version 1.27 required.
Type of returned value:
    Nothing
Description:
    Select given weapon. For weapon values see CfgWeapons.

Example:
    soldierOne selectWeapon "LAWLauncher"

also from comref:
Code: [Select]
Config entry: CfgWeapons

   Value  Description  
 +  Shell73  
 +  Heat73  
 +  Gun73  
 +  Shell105  
 +  Heat105  
 +  Gun105  
 +  Shell120  
 +  Heat120  
 +  Gun120  
 +  Shell125  
 +  Heat125  
 +  Gun125  
 +  MGun     <----------------------- I believe it is this
 +  Riffle  
 +  StrokeFist
I could be very wrong about this though....
« Last Edit: 17 Nov 2003, 09:55:21 by CrashDome »