mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
500 B
Plaintext
24 lines
500 B
Plaintext
/*
|
|
* 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
|
|
*/
|
|
#include "script_component.hpp"
|
|
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
|