ACE3/addons/tripod/functions/fnc_handleScrollWheel.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
408 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_tripod_fnc_handleScrollWheel;
*
* Public: No
*/
params ["_scroll"];
if (GVAR(adjustPFH) == -1) exitWith {false};
GVAR(height) = 0 max (GVAR(height) + (_scroll / 20)) min 1;
true