Forum Jump :

Author Message


Posts: 86
Rank:


Level: Member

Country: in
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2016-10-01 00:08        
     
I have two scripting questions-

(1) How should one make a vehicle (e.g a heavy tank) change its main gun ammo through script commands?
(2) How should one check aircraft ammo (rockets & cannons) through script commands?


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 57
In-game name: Kobayashi Maru

 
#2 Posted at 2016-10-01 04:03        
     
1 - this way. I wrote a code in "SCRIPT LIBRARY" section. This code makes things automatic for shooting at infantry or vehicles with the good ammunition, what ever the tank could be. It's possible to adapt to your problem if you can say when and/or why you want to change ammos.
So, in other worlds, you need to know or to extract the classes of ammos, the class of main turret and what you want to do.

2 - you can check aircraft ammos as any other vehicle. Do you want to know the current mag or the amount of ammos, or select mag? magazineTurretAmmo and some other commands can do the trick.

This post was edited by Pierre MGI (2016-10-01 04:12, 382 days ago)

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS