OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Knight Trane on 15 May 2009, 16:12:45

Title: removeWeapons from Aircraft
Post by: Knight Trane 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?
Title: Re: removeWeapons from Aircraft
Post by: Planck 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

Title: Re: removeWeapons from Aircraft
Post by: Knight Trane 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?
Title: Re: removeWeapons from Aircraft
Post by: Planck 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
Title: Re: removeWeapons from Aircraft (Solved)
Post by: Knight Trane on 15 May 2009, 22:57:08
Doh!

How could I be so stupid. 

I'll check the magazine command later tonight.

Thanks,