ACE3/addons/towing/functions/fnc_onMouseButtonDown.sqf

27 lines
385 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
2023-08-16 23:18:01 +00:00
* Author: tcvm
* Handles mouse interaction for attaching rope
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_towing_fnc_onMouseButtonDown
*
* Public: No
*/
params ["", "_button"];
if (_button > 1) exitWith {};
if (_button == 1) then {
GVAR(mouseRight) = true;
} else {
GVAR(mouseLeft) = true;
}