SA-MP Forums Archive
Object surfing desync - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Object surfing desync (/showthread.php?tid=493386)



Object surfing desync - KubiPL - 08.02.2014

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);



Re: Object surfing desync - LeGGGeNNdA - 08.02.2014

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


Re: Object surfing desync - KubiPL - 08.02.2014

Now its ok.


Re: Object surfing desync - Pottus - 08.02.2014

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.


Re: Object surfing desync - KubiPL - 08.02.2014

Object attached to vehicle that's all.


Re: Object surfing desync - Pottus - 08.02.2014

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.


Re: Object surfing desync - KubiPL - 08.02.2014

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.


Re: Object surfing desync - Pottus - 08.02.2014

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


Re: Object surfing desync - KubiPL - 08.02.2014

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


Re: Object surfing desync - Baboon - 09.02.2014

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.