Freeze the mouse

Started by Mohamed Boubekri, Aug 16, 2023, 04:02 PM

Previous topic - Next topic

Mohamed Boubekri

Hey everyone, i'm wondering if i can freeze the mouse instead of hiding it ? GUI.SetMouseEnabled(false);
Because, if we don't freeze it, the player can show the mouse again by clicking Alt Gr. Then the player can
cause errors in the console, for example if he click a button again & again.
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

vitovc

No. If you want to prevent mouse click then handle event of it by script. at last check if(::GUI.GetMouseEnabled()){...}
...::: vice city :::...
Useful things for vcmp: Relative position and finding an angle (in 3d), 3d line (like laser)

Mohamed Boubekri

Okey, thank you for your reply.
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].