SA-MP Forums Archive
[BUG] AttachObjectToPlayer disappearing objects - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [BUG] AttachObjectToPlayer disappearing objects (/showthread.php?tid=411397)



[BUG] AttachObjectToPlayer disappearing objects - Memoryz - 28.01.2013

When you use AttachObjectToPlayer, the objects seem to disappear for certain players when their interiors and/or virtual worlds change.

We use this function to attach solid objects to players (Ex Riot Shields)


AW: [BUG] AttachObjectToPlayer disappearing objects - Meta - 28.01.2013

Which RC version do you use?


Re: [BUG] AttachObjectToPlayer disappearing objects - leong124 - 29.01.2013

Isn't AttachObjectToPlayer removed since 0.3 IIRC?
It seems to be replaced by SetPlayerAttachedObject.


Re: [BUG] AttachObjectToPlayer disappearing objects - Luis- - 29.01.2013

So, would checking if a player changed an interior using OnPlayerInteriorChange then re-attaching the object work?


Re: [BUG] AttachObjectToPlayer disappearing objects - Memoryz - 29.01.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
So reattach them on interior and VW changes?
That's what we are doing at the moment, however it will show for the player that has it attached and sometimes to other players. ( I haven't established for what players it ends up showing to. )