Forum

> > CS2D > Scripts > Help with position
Forums overviewCS2D overview Scripts overviewLog in to reply

English Help with position

4 replies
To the start Previous 1 Next To the start

old Help with position

BrownSoldier
BANNED Off Offline

Quote
Can sombody tell me when im in cs2d map and how can im know my position?
(srry for my bad eng)

old Re: Help with position

Yates
Reviewer Off Offline

Quote
You can look on editor, just start another cs2d up use small screen, doesn't lagg that much.

old Re: Help with position

KimKat
GAME BANNED Off Offline

Quote
Try typing something like this into the console, in theory it would evaluate the Lua script and send you the coordinates... but it most likely will fail because I'm not good at Lua.
1
lua [[space = " "]];[[function i(id){"..player(id,[[x]])..""..space..""..player(id,[[y]]).."};screen:print id(i[0]);
Not sure if that works perhaps you could break it down into some sort of Lua function instead... this was just my useless Lua attempts once again. I am trying to become better though.

old Re: Help with position

EngiN33R
Moderator Off Offline

Quote
What. The. Hell.
1
screen:print id(i[0]);
You really mixed stuff up

To show you your position write this in console:
> Pixels
1
lua msg2(1,player(1,"x"));lua msg2(1,player(1,"y"))
> Tiles
1
lua msg2(1,player(1,"tilex"));lua msg2(1,player(1,"tiley"))

Untested though...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview