2015-01-12 09:48:26 +00:00
|
|
|
/*
|
|
|
|
Name: ACE_Explosives_fnc_HandleScrollWheel
|
|
|
|
|
|
|
|
Author(s):
|
|
|
|
L-H
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Handles rotating of Explosives
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
Number: Scroll amount
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
Boolean: Handled or not.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
1.2 call ACE_Explosives_fnc_HandleScrollWheel;
|
|
|
|
*/
|
2015-01-13 21:21:31 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-12 09:48:26 +00:00
|
|
|
private ["_obj"];
|
|
|
|
if (isNull(GVAR(Setup)) || {ACE_Modifier == 0} || !GVAR(pfeh_running)) exitWith {false};
|
|
|
|
_this = _this * 5;
|
|
|
|
GVAR(Setup) setDir ((getDir GVAR(Setup) + _this);
|
|
|
|
GVAR(TweakedAngle) = GVAR(TweakedAngle) + _this;
|
|
|
|
|
|
|
|
true
|