![]() |
help with attachplayertoobj
I need help with getting this to work right
when attached to an NPC moving around on the gmap, it seems to mess up a lot it will often cross levels, and not update on my client that it has moved past the edge of the current level on the gmap also, say i am standing right on the top left corner of the NPC, when the npc moves around a little i may end up way off the NPC in the bottom right it's very strange simple script like this is used PHP Code:
|
Quote:
|
there is an image set for this NPC, and yes I can walk around
my problems are switching levels on the gmap, and remaining connected/in the right location after switching levels in general edit: disabling movement would not help, no one is moving while doing these tests |
Quote:
|
i'll try both of those
maybe it will switch levels more smoothly on the gmap |
You need to have a //#CLIENTSIDE
setshape 2 and also i have the same problems so try using smallter interverals of the move command because for some reason even on a gmap data doesnt get sent correctly when crossing level boundaries O_o but using small interverals of the move command updates its x/y /movement better. Also to prevent getting thrown outside of the x/y boundaries of the npc use something clientside to keep the players x and y inside of the boundaries of that object as it moves. |
Thanks for the reply TB3
Quote:
The thing with having to keep a clientside script making sure the player doesn't get thrown off, that's a sort of workaround too but not as bad. |
I think Stefan's new precision location system will probably fix that. That'll become active when 2.3 is released.
|
Quote:
x+=.5; or something XD and god knows thats not going to go over smoothly. |
| All times are GMT +2. The time now is 08:24 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.