mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
34 lines
625 B
Plaintext
34 lines
625 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* 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
|