jibun 1 Posted August 21, 2018 For example, i want to store amount of napalm strikes left. Is there any way to somehow connect the amount variable and the vehicle that drops it, so when bomb has been dropped, i could access this amount variable through the vehicle object and lower it? In Armed Assault there is get/setVariable, but is it doable in OFP? Share this post Link to post Share on other sites
zulu1 145 Posted August 21, 2018 If you are using an aircraft rather than a scripted simulation you can try the ammo command, it may work. Quote Check how many rounds are left in the currently loaded magazine in the given muzzle. Since Arma v1.55.133505 the command also returns ammo for units in vehicles. Syntax Syntax: unit ammo muzzle Parameters: unit: Object muzzle: String - muzzle of a weapon. See the topic Category:Weapons for reference about possible values. Return Value: Number I you're using a script you could write in a counter. Share this post Link to post Share on other sites
jibun 1 Posted August 21, 2018 4 minutes ago, zulu1 said: If you are using an aircraft rather than a scripted simulation you can try the ammo command, it may work. I you're using a script you could write in a counter. Thanks for trying to answer, but i use scripted simulation ._. So, it turns out that there's no replacement for get/setVariable in OFP? Share this post Link to post Share on other sites