OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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?
-
You cannot remove the weapon proxies from the pylons via scripting, you nedd to edit the model in Oxygen for that.
Planck
-
When you fire a weapon, the pylon is empty until you reload. Isn't there a work around?
-
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
-
Doh!
How could I be so stupid.
I'll check the magazine command later tonight.
Thanks,