Page MenuHomeFeedback Tracker

Player in "Cargo" of helicopter is undetectable with "nearEntities" and "nearObjects" commands
Closed, ResolvedPublic

Description

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.

Details

Legacy ID
4028909220
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

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!!!

Additional Information

tried with several helicopters with cargo, all failed

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Scripting.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 4028909220.May 7 2016, 5:45 PM
Killzone_Kid added a subscriber: Killzone_Kid.

Should mention this happens in MP and SP (editor)

Has been fixed, no idea when. Repro checks out, closing