Home   Help Search Login Register  

Author Topic: Selecting Different Tank Weapons?  (Read 619 times)

0 Members and 1 Guest are viewing this topic.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Selecting Different Tank Weapons?
« on: 05 Sep 2005, 01:39:12 »
Alright, I have the player (ME), and 1 civilian, and a BMP on the map. Alright what I want to do is to get the BMP to use it's cannon to shoot the civilian instead of using it's machine gun.

From start to finish how do I go about doing that?

THanks.
Who's hyped for Arma4, long live Arma!

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Selecting Different Tank Weapons?
« Reply #1 on: 05 Sep 2005, 03:58:00 »
I believe the lower the civilian's rating, the more threat they pose to the tank, so try this:

Code: [Select]
loon_1 addRating -500000
where loon_1 is the civvy. The tank should shoot the poor sod with a tank round then.
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re:Selecting Different Tank Weapons?
« Reply #2 on: 05 Sep 2005, 04:54:20 »
Where am I saposed to type that code, in a script, init field or other? If i type it in the civlians init field, if I put this "this addrating blahblah", it doesn't work then, the tank fires it's machine guns. Any thoughts?
Who's hyped for Arma4, long live Arma!

Offline Morglor9

  • Members
  • *
Re:Selecting Different Tank Weapons?
« Reply #3 on: 05 Sep 2005, 05:23:48 »
perhaps a higher rating?
Cymbaline

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Selecting Different Tank Weapons?
« Reply #4 on: 05 Sep 2005, 05:31:43 »
perhaps:
tankname selectweapon "cannonName"
where you would need to change cannonName to whatever the classname of the cannon for the bmp
you may be able to try (primaryweapon tankname) as well

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Selecting Different Tank Weapons?
« Reply #5 on: 05 Sep 2005, 09:15:40 »
I didn't think a BMP would shoot a civilian.  I think you would need to make the civi west by grouping him with a west soldier that has probability of presence set to false.  Then the BMP will see him as west even if he looks like a civi.

Why not just remove the machinegun ammo from the BMP?   Something like:

BMPname removeMagazines "MachineGun7_6"
« Last Edit: 05 Sep 2005, 09:36:44 by THobson »