Page MenuHomeFeedback Tracker

GetIn* actions pass wrong turret to GetIn EH
Reviewed, NormalPublic

Description

When using GetIn* actions (e.g. GetInGunner or GetInCommander) passed argument turret to GetIn Event Handler is wrong (GetIn EH).

When using menu actions to get in, this argument is OK.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7 x64
Category
Scripting
Steps To Reproduce

Place player and empty tank (e.g. B_MBT_01_cannon_F) on map. Look at tank and add EH to it in console:

eh=cursorObject addEventHandler ["GetIn", {systemchat format ["%1", _this]}];

Now get in gunner/commander with menu actions and with scripting commands:

player action ["GetInGunner", cursorObject];
player action ["GetInCommander", cursorObject];

Note turret argument difference:
get in as gunner: [O Alpha 1-1:1 (D),"gunner",O Alpha 1-1:1 (D),[0]]
GetInGunner action: [O Alpha 1-1:1 (D),"gunner",O Alpha 1-1:1 (D),[]]

Additional Information

Possibly as side effect it breaks doors order on vehicles with configured driverDoor or cargoDoors or gunnerDoor parameters in config. Instead correct door the driver door is opened and isn't closed. Vanilla doesn't have such vehicles, but RHS and CUP have (e.g. BMP-1).

Event Timeline

Wulf changed the task status from New to Reviewed.Oct 13 2017, 4:17 PM
Wulf added a subscriber: Wulf.

Hello.

Thank you for the report, we will have a look at it.