Personal tools

Lua/Events/Client/MouseMove

From JC2-MP Documentation

< Lua
Jump to: navigation, search
Name    MouseMove
Arguments (in table)    Vector2 position
Return option    None


Description

Fired when the mouse is moved. (0,0) is the top-left of the screen, with the bottom-right being the size of the window.

Examples

Foo = function(args)
	local message = "Mouse position: "..args.position
	Chat:Print(message, Color(255, 255, 255))
end
 
Events:Subscribe("MouseMove", Foo)