Anonymous | Login | 2024-11-24 01:24 CET |
My View | View Issues | Change Log | Roadmap | My Account |
View Revisions: Issue #2603 | [ Back to Issue ] | ||
Summary | 0002603: Tigr turret script blocks keyUp event handler. | ||
Revision | 2016-08-21 19:26 by Snippers | ||
Description | The armed tigr (rhs_tigr_sts_3camo_msv), has a script that adds a keyDown event handler. This is because the event handler always returns true. This in turns means the engine will not execute any further keyDown eventhandlers. This is a problem for other mods (ACRE2) that are reliant on using these key handlers. What it looks like now (rhs_tigr_sts_turret_ui.sqf): <code> _id = (findDisplay 46) displayAddEventHandler ["KeyUp", { ... true }]; </code> What it should look like: <code> _id = (findDisplay 46) displayAddEventHandler ["KeyUp", { ... private _handled = false; if (doAction) then { _handled = true; }; _handled; }]; </code> |
||
Revision | 2016-08-21 19:28 by Snippers | ||
Description | The armed tigr (rhs_tigr_sts_3camo_msv), has a script that adds a keyDown event handler. This is because the event handler always returns true. This in turns means the engine will not execute any further keyDown eventhandlers. This is a problem for other mods (ACRE2) that are reliant on using these key handlers. What it looks like now (rhs_tigr_sts_turret_ui.sqf): _id = (findDisplay 46) displayAddEventHandler ["KeyUp", { ... true }]; What it should look like: _id = (findDisplay 46) displayAddEventHandler ["KeyUp", { private _handled = false; if (doAction) then { _handled = true; }; _handled; }]; |
Copyright © 2000 - 2024 MantisBT Team |