Description: Triggers a particular event handler on a unit, generating a custom return value in the event handler; all unspecified array values in a return shall be type 'nil'
Syntax:
_unit execEventHandler ["EventHandlerName", _eventHandlerReturnsAsArray];
Examples:
_unit execEventHandler ["Fired", [_unit, currentWeapon _unit, currentMuzzle _unit, currentMode _unit, getText (configFile >> "CfgMagazines" >> _currentMagazine _unit >> "ammo"), currentMagazine _unit, _projectile, _unit]];
_unit execEventHandler ["IncomingMissile", [_unit, getText (configFile >> "CfgMagazines" >> _currentMagazine _enemy >> "ammo"), vehicle _enemy, _enemy]];
Reasoning:
There exists no way to trigger certain eventHandlers in game for things like manual setting of missile targets ('setMissileTarget/Pos') and triggering appropriate reactions, i.e. 'IncomingMissile' event handlers. Further utility for triggering certain event handlers for more streamlined testing of particular event handler scripts, or for purposes not conceived by this ticket author.