ACE3/addons/towing/functions/fnc_onMouseButtonUp.sqf

27 lines
389 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
2022-01-30 17:54:30 +00:00
* Author: Dani (TCVM)
* Handles mouse interaction for attaching rope
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_towing_fnc_onMouseButtonUp
*
* Public: No
*/
params ["", "_button"];
if (_button > 1) exitWith {};
if (_button == 1) then {
GVAR(mouseRight) = false;
} else {
GVAR(mouseLeft) = false;
}