Page MenuHomeFeedback Tracker

GetIn eventhandler does not recognize commander vehicle position
New, WishlistPublic

Description

The GetIn eventhandler does not seem to pick-up when a player enters an (armored) vanilla vehicle as a commander.

Details

Legacy ID
2633059196
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Place a vehicle, name it: myVehicle
  1. Add the getIn EH to the vehicle:

myVehicle addEventHandler ["GetIn", {

    _vehiclePos  = _this select 1;

    if (_vehiclePos == "driver") then {hint 'entered vehicle as "DRIVER"'};
	
    if (_vehiclePos == "gunner") then {hint 'entered vehicle as "GUNNER"'};
	
    if (_vehiclePos == "commander") then {hint 'entered vehicle as "COMMANDER"'};

}];

  1. Enter as commander, gunner, driver
Additional Information

Tested with Slammer and Marshal in editor preview

Event Timeline

whiztler edited Steps To Reproduce. (Show Details)Jun 26 2015, 2:47 PM
whiztler edited Additional Information. (Show Details)
whiztler set Category to Scripting.
whiztler set Reproducibility to Always.
whiztler set Severity to None.
whiztler set Resolution to Open.
whiztler set Legacy ID to 2633059196.May 8 2016, 12:17 PM
Bohemia added a subscriber: ceeeb.Jun 26 2015, 2:47 PM

That is because (_this select 1) for commander says "cargo". Not sure this is correct, someone should look into it