Skip to content

Change Mouse

Change Mouse

Controls whether the mouse position can be changed by the player.

Properties

System

Name Explanation Type
Can Position Change Whether the mouse position can be changed by the player. Switch or Value

Examples

Lock Mouse Position

Prevents the player from changing the mouse position.

change_mouse(false);
{"Data":{"IsMousePositionChangeable":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeMouseCommand"}

Unlock Mouse Position

Allows the player to change the mouse position freely.

change_mouse(true);
{"Data":{"IsMousePositionChangeable":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":true,"SwitchIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeMouseCommand"}

Control Mouse Position with a Global Switch

Sets whether the mouse position can change based on the value of global switch 0.

change_mouse($gs[0]);
{"Data":{"IsMousePositionChangeable":{"IsGlobalSwitch":true,"IsLocalSwitch":false,"IsValue":false,"Value":false,"SwitchIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeMouseCommand"}