Object surfing desync
#1

Fix that bug when player is surfing object, he is desynced for others, please, it's horrible.

[ame]http://www.youtube.com/watch?v=CgQv4TQOIcE[/ame]

It's attached object (invisible) to vehicle - thats all.
Code:
Код:
obj = CreateDynamicObject(19358, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
                AttachDynamicObjectToVehicle(obj, vehicleid, 0.0000, 0.8424, -1.1582, 0.0, 90.0, 90.0);
                SetDynamicObjectMaterial(obj, 0, 0, "null", "null", 0x0000000);
Reply
#2

You made the video private, somehow i cant see this.
Reply
#3

Now its ok.
Reply
#4

You didn't even explain what your doing how is anyone to know everything that is going on? The cause is much more important than effect.
Reply
#5

Object attached to vehicle that's all.
Reply
#6

obj = CreateDynamicObject(19358, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);

Yeah ok that is your problem right there I doubt there will be a fix for this use CreateObject() instead also keep in mind CreatePlayerObject() is only for one player so this isn't a bug at all there is absolutely no reason do anything about it.
Reply
#7

LOL? AttachDynamicObjectToVehicle - it doesnt metter where i create object, I can create at veh position but this is not changing anythink.
It attach object and object was there where I was standing for.
Also i didn't use CreatePlayerObject.
Object is global, other player can stand on this but when he is surfing he's getting desync - like falling.
Reply
#8

You don't know what your talking about, the streamer plugin is just a wrapper for SAMP's functions CreateDynamicObject() uses CreatePlayerObject() so you did use it. The object is GLOBAL in the streamer but it still doesn't change the fact that the streamer uses CreatePlayerObject() to create it.

https://sampwiki.blast.hk/wiki/CreatePlayerObject
https://sampwiki.blast.hk/wiki/AttachPlayerObjectToVehicle

You need to use

https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle
Reply
#9

Yes it's true.
I used CreateObject and work good.
Reply
#10

There will always be a desync,
I've investigated this issue, it happens to both CreateObjects and Playerobjects....
Though it's more steady with CreateObjects.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)