#include "script_component.hpp" /* * Author: Timi007 * Handles the marker flag object height. * * Arguments: * 0: Scroll amount * * Return Value: * Handled * * Example: * [5] call ace_marker_flags_fnc_handleScrollWheel * * Public: No */ params ["_scrollAmount"]; if (GVAR(isPlacing) isNotEqualTo PLACE_WAITING) exitWith { false }; // Move object height 5cm per scroll GVAR(objectHeight) = GVAR(objectHeight) + (_scrollAmount * 0.05); // Clamp height between MIN_HEIGHT and MAX_HEIGHT GVAR(objectHeight) = MIN_HEIGHT max (GVAR(objectHeight) min MAX_HEIGHT); true