mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
400 B
Plaintext
25 lines
400 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Garth 'L-H' de Wet, Ruthberg
|
|
* Handles sandbag rotation
|
|
*
|
|
* Arguments:
|
|
* 0: scroll amount <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* handled <BOOL>
|
|
*
|
|
* Example:
|
|
* [1.2] call ace_trenches_fnc_handleScrollWheel
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
if (GVAR(digPFH) == -1) exitWith {false};
|
|
|
|
params ["_scroll"];
|
|
|
|
GVAR(digDirection) = GVAR(digDirection) + (_scroll * 5);
|
|
|
|
true
|