2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2021-10-14 15:46:43 +00:00
|
|
|
/*
|
|
|
|
* Author: Kingsley
|
|
|
|
* Handles the object direction.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Scroll <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Handled <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [5] call ace_fortify_fnc_handleScrollWheel
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (GVAR(isPlacing) != PLACE_WAITING) exitWith {false};
|
|
|
|
|
|
|
|
params ["_scroll"];
|
|
|
|
|
|
|
|
if (cba_events_shift) exitWith {
|
|
|
|
GVAR(objectRotationX) = GVAR(objectRotationX) + (_scroll * 5);
|
|
|
|
true
|
|
|
|
};
|
|
|
|
|
|
|
|
if (cba_events_control) exitWith {
|
|
|
|
GVAR(objectRotationY) = GVAR(objectRotationY) + (_scroll * 5);
|
|
|
|
true
|
|
|
|
};
|
|
|
|
|
|
|
|
GVAR(objectRotationZ) = GVAR(objectRotationZ) + (_scroll * 5);
|
|
|
|
true
|