How can I get the name of a vehicle (eg. M1Abrams) a unit is in ?
I need it to count how many vehicles of a certain type are (still) on the battlefield after a battle has taken place.
Example:
I have defined W1 to be an array with all the units of group1:
W1 = units group1
I select first unit of the group:
_element = w1 select 0
I thought I could get the name of the vehicle like this:
_vehicle = name vehicle _element
Then print it on screen via the hint command:
hint format ["%1 is in a %2", _element, _vehicle]
I get : "West Bravo black:1 is in a James Pound" while I wanted to have "West Bravo black:1 is in a M1Abrams".
How could I do this
Thanks for any help offered.
Ronald Speirs