ACE3/addons/explosives/functions/fnc_handleScrollWheel.sqf

23 lines
393 B
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
/*
* Author: Garth 'L-H' de Wet
* Handles rotating of Explosives
*
* Arguments:
* Amount scrolled <NUMBER>
*
* Return Value:
* Handled <BOOL>
*
* Example:
* 1.2 call ACE_Explosives_fnc_HandleScrollWheel;
*
* Public: No
*/
2015-07-14 05:24:55 +00:00
if (!GVAR(pfeh_running)) exitWith {false};
2015-07-14 05:24:55 +00:00
2015-07-18 05:36:47 +00:00
GVAR(TweakedAngle) = ((GVAR(TweakedAngle) + 7.2 * _this) + 360) % 360;
true