2015-06-04 19:13:44 +00:00
|
|
|
/*
|
|
|
|
* Author: Garth 'L-H' de Wet, Ruthberg
|
|
|
|
* Handles sandbag rotation
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: scroll amount <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* handled <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2015-08-07 06:07:10 +00:00
|
|
|
* [1.2] call ace_tripod_fnc_handleScrollWheel;
|
2015-06-04 19:13:44 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-07 06:07:10 +00:00
|
|
|
params ["_scroll"];
|
2015-06-04 19:13:44 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
if (GVAR(adjustPFH) == -1) exitWith {false};
|
2015-06-04 19:13:44 +00:00
|
|
|
|
|
|
|
GVAR(height) = 0 max (GVAR(height) + (_scroll / 20)) min 1;
|
|
|
|
|
|
|
|
true
|