I dont know if this is config problem or scripting problem but if you are trying to detect player presence, if player is in cargo of a helicopter, he is undetectable. Both nearObjects and nearEntities fail. This does not happen when player is in cargo of a Tank for example.
Description
Details
- Legacy ID
- 4028909220
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
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!!!
tried with several helicopters with cargo, all failed