Well..........my brain is cooking. Spend 2 days to get this to work but it just wont.
{if ((typeOf _x) == "MAN" and _x == vehicle _x) then {_list = _list + [ _x] }} forEach list _trigger
Doesnt work, _list returns nothing so
_unit = _list select _i
doesnt make sense since its empty. So I can not tell the _unit to do something.
It all has to do with
{if ((typeOf _x) == "MAN"
Since thats never true. Foreach makes it check an array but its cant see the "TANK", "MAN", "CAR" array, it can only see its class, so its always "not equal" and so it doesnt update _list.
I can make the script check all units if I make it
_list = list _trigger
But than still, I cant make "typeof" to see if its armor, car or man.
The only solution I see for me is I have to add "typeof" for every class I have in my mission and redirect it to the correct script section for each unit I get out of my _list.
Right?
Sorry if people start to think this is becomming annoying, but I just cant figure it out anymore other than adding "typeof" for each class I have in my script.