Page MenuHomeFeedback Tracker

EH SeatSwitchedMan and SeatSwitched
New, NormalPublic

Description

Any chance we could get some improvements to the eventHandlers seatSwitched and seatSwitchedMan by supplying the positions and turrets like are available for GetInMan and GetOutMan events, rather than relying on assignedVehicleRole.

At the moment there is a lot of ambiguity between position names.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Operating System Version
NA
Category
Feature Request
Steps To Reproduce

Place a unit for the player.
Place an empty Marshall apc.

In the players init write

player addEventHandler [ "GetInMan",{
	params[ "_unit", "_pos", "_veh", "_tur" ];
	( assignedVehicleRole _unit ) params[ "_asPos", "_asTur" ];
	
	hint format["GetIn\n%1\n%2\n\nAssigned\n%3\n%4", _pos, _tur, _asPos, _asTur ];
}];

player addEventHandler [ "seatSwitchedMan",{
	params[ "_unit" ];
	( assignedVehicleRole _unit ) params[ "_asPos", "_asTur" ];
	
	hint format["Switched\n%1\n%2", _asPos, _asTur ];
}];

Run up to the apc and experiment with the commanders position both from getIn and seatSwitched.
Note the ambiguity between [ "Turret", [0,0] ] and [ "commander", [0,0] ]

Event Timeline

Larrow created this task.Dec 9 2016, 6:36 AM