spawn a tank
tank = "B_MBT_01_cannon_F" createvehicle position player;
move is driver or turret then execute
hint str ({isPlayer _x} count (position tank nearEntities ["AllVehicles", 100])); //1
hint str ({isPlayer _x} count (position tank nearObjects ["AllVehicles", 100])); //1
change to cargo then execute
hint str ({isPlayer _x} count (position tank nearEntities ["AllVehicles", 100])); //1
hint str ({isPlayer _x} count (position tank nearObjects ["AllVehicles", 100])); //1
now spawn a heli
heli = "B_Heli_Transport_01_camo_F" createvehicle position player;
move is driver or turret and execute
hint str ({isPlayer _x} count (position heli nearEntities ["AllVehicles", 100])); //1
hint str ({isPlayer _x} count (position heli nearObjects ["AllVehicles", 100])); //1
change to cargo and execute
hint str ({isPlayer _x} count (position heli nearEntities ["AllVehicles", 100])); //0!!!
hint str ({isPlayer _x} count (position heli nearObjects ["AllVehicles", 100])); //0!!!