Home   Help Search Login Register  

Author Topic: removeWeapons from Aircraft  (Read 1302 times)

0 Members and 1 Guest are viewing this topic.

Offline Knight Trane

  • Members
  • *
removeWeapons from Aircraft
« on: 15 May 2009, 16:12:45 »
I'm doing a setPos with an A10.  I want to remove all the weapons from the pylons.  How?
I've tried removeAllWeapons, removeMagazine, clearWeaponCargo, and clearMagazineCargo.

Is it possible?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: removeWeapons from Aircraft
« Reply #1 on: 15 May 2009, 16:54:09 »
You cannot remove the weapon proxies from the pylons via scripting, you nedd to edit the model in Oxygen for that.


Planck

I know a little about a lot, and a lot about a little.

Offline Knight Trane

  • Members
  • *
Re: removeWeapons from Aircraft
« Reply #2 on: 15 May 2009, 20:56:43 »
When you fire a weapon, the pylon is empty until you reload.  Isn't there a work around?
« Last Edit: 15 May 2009, 20:59:04 by Knight Trane »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: removeWeapons from Aircraft
« Reply #3 on: 15 May 2009, 21:32:09 »
Yes, well I was wrong really.

If you place the vehicle in the editor and use the slider to remove the ammo it does indeed remove the proxies.
No idea how I forgot about that.

But removeallweapons doesn't work becuase you are trying to remove the weapon when you should be removing the ammo, try removemagazines.

In the init line, put, for example, 'this removemagazines "mavericklauncher"' and the proxies will be gone.........hopefully.


Planck
I know a little about a lot, and a lot about a little.

Offline Knight Trane

  • Members
  • *
Re: removeWeapons from Aircraft (Solved)
« Reply #4 on: 15 May 2009, 22:57:08 »
Doh!

How could I be so stupid. 

I'll check the magazine command later tonight.

Thanks,