The GetIn eventhandler does not seem to pick-up when a player enters an (armored) vanilla vehicle as a commander.
Description
Description
Details
Details
- Legacy ID
- 2633059196
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Place a vehicle, name it: myVehicle
- 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"'};
}];
- Enter as commander, gunner, driver
Additional Information
Tested with Slammer and Marshal in editor preview
Event Timeline
Comment Actions
That is because (_this select 1) for commander says "cargo". Not sure this is correct, someone should look into it