OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Carroll on 06 Jun 2008, 08:36:12
-
Hi, i know how to detect whether a Unit has a certain class of ammo in his inventory using
("ammoClassName" in magazines unitName)
But im finding problems detecting in an empty vehicle that i have assigned a driver to at a later stage in mission...is there a different procedure for doing this? If so i would need some help. Many thanks in advance...
addnote: i'm issuing a moveInDriver command of another Unit to this vehicle at an earlier stage in the mission before i need to check the condition, perhaps this is the cause or not?....What i mean to say is, if i move/assign a driver to this same empty vehicle, does it mean i have to check the magazines of this vehicles new effectiveCommander or can i still check the 'in magazines' conditon of the vehicle name at any time?
i think what i am looking for is a command, somefin like
("ammoClassName" in magazineCargo VehicleName)
-
You aren't the first person, including me, to want this command, but it doesn't exist, nor is there a workaround. You can tell what vehicular magazines and weapons the vehicle is using itself, but what personal weapons and magazines are in the cargo is not discoverable.
-
Thanks Spooner, you've saved me some time