2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-06-02 17:30:50 +00:00
|
|
|
/*
|
|
|
|
* Author: Garth 'L-H' de Wet, Ruthberg
|
|
|
|
* Handles sandbag rotation
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: scroll amount <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* handled <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2015-08-08 00:00:00 +00:00
|
|
|
* [1.2] call ace_sandbag_fnc_handleScrollWheel
|
2015-06-02 17:30:50 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-03-06 15:54:27 +00:00
|
|
|
if (GVAR(deployPFH) == -1) exitWith {false};
|
2015-06-02 17:30:50 +00:00
|
|
|
|
2016-03-06 15:54:27 +00:00
|
|
|
params ["_scroll"];
|
2015-06-02 17:30:50 +00:00
|
|
|
|
|
|
|
GVAR(deployDirection) = GVAR(deployDirection) + (_scroll * 5);
|
|
|
|
|
|
|
|
true
|