Forum

> > CS2D > Scripts > Help with position
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Help with position

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Help with position

BrownSoldier
BANNED Off Offline

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

alt Re: Help with position

Yates
Reviewer Off Offline

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

alt Re: Help with position

KimKat
GAME BANNED Off Offline

Zitieren
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.

alt Re: Help with position

EngiN33R
Moderator Off Offline

Zitieren
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...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht