2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-01-23 23:45:59 +00:00
|
|
|
/*
|
|
|
|
* Author: Garth 'L-H' de Wet, Ruthberg
|
|
|
|
* Handles sandbag rotation
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: scroll amount <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* handled <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2020-04-25 06:41:45 +00:00
|
|
|
* [1.2] call ace_trenches_fnc_handleScrollWheel
|
2016-01-23 23:45:59 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-03-06 15:54:27 +00:00
|
|
|
if (GVAR(digPFH) == -1) exitWith {false};
|
2016-01-23 23:45:59 +00:00
|
|
|
|
2016-03-06 15:54:27 +00:00
|
|
|
params ["_scroll"];
|
2016-01-23 23:45:59 +00:00
|
|
|
|
|
|
|
GVAR(digDirection) = GVAR(digDirection) + (_scroll * 5);
|
|
|
|
|
|
|
|
true
|