mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
27 lines
454 B
Plaintext
27 lines
454 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Handles incremental door opening
|
|
*
|
|
* Arguments:
|
|
* 0: scroll amount <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* handled <BOOL>
|
|
*
|
|
* Example:
|
|
* [5] call ACE_interaction_fnc_handleScrollWheel
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_scroll"];
|
|
|
|
if !(GVAR(isOpeningDoor)) exitWith {false};
|
|
|
|
GVAR(doorTargetPhase) = ((GVAR(doorTargetPhase) + (_scroll / (1.2 * 12))) max 0) min 1;
|
|
|
|
GVAR(usedScrollWheel) = true;
|
|
|
|
true
|