English i cant teleport myself in my server via setpos

3 replies
Goto Page
To the start Previous 1 Next To the start
Up
Persian_Arty
User
Offline Off
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
Persian empire will once again come to cross the world
09.06.21 09:29:39 pm
Up
Mami Tomoe
User
Offline Off
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!
fish
09.06.21 09:36:22 pm
Up
Persian_Arty
User
Offline Off
sorry im asking too much , okay ill reply the other topic not anymore, write here , how can i transfer via Tiles ?
Persian empire will once again come to cross the world
10.06.21 11:36:08 am
Up
Gaios
Security Supporter
Offline Off
Maths.
x*32+16
,
y*32+16
To the start Previous 1 Next To the start