Forum

> > CS2D > Maps/Editor > i cant teleport myself in my server via setpos
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English i cant teleport myself in my server via setpos

3 replies
To the start Previous 1 Next To the start

old i cant teleport myself in my server via setpos

Persian_Arty
User Off Offline

Quote
it teleports me to first 5 x and x in my map , what could be the reason ?
ive a problem in my server , i type the right position to be teleported as a server but it moves me in only 5 first Tile of my map , not beyond, what can be the problem ?
doesnt maatter what i type x and y i will be only moved in first 5 Tiles
ive found out ( setpos 1 196 168 ) will move me to the Pixel and not the Tile position
Pixel position:
lua print(player(1,'x'),player(1,'y'))

Tile position:
lua print(player(1,'tilex'),player(1,'tiley'))
edited 1×, last 09.06.21 09:34:13 pm

old Re: i cant teleport myself in my server via setpos

Mami Tomoe
User Off Offline

Quote
First, you don't need 3 threads for 1 question.

Second, you're probably using the wrong tile coordinates.

There are tile pixel positions (most accurate, used for cs2d cmd setpos) and there are tile positions (less accurate, used for other various things).

Make sure that the position you're using is of the pixel format, and that you're getting it from the right source!
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview