Forum

> > CS2D > Scripts > how to find crusor's tilex and tiley?
Forums overviewCS2D overview Scripts overviewLog in to reply

English how to find crusor's tilex and tiley?

2 replies
To the start Previous 1 Next To the start

old Re: how to find crusor's tilex and tiley?

Flacko
User Off Offline

Quote
If you have stored the absolute cursor position in, for example, playermousex and playermousey:

1
2
local tx = math.floor(playermousex/32)
local ty = math.floor(playermousey/32)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview