SA-MP Forums Archive
EditPlayerObject - 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: EditPlayerObject (/showthread.php?tid=660748)



EditPlayerObject - d3Pedro - 12.11.2018

Hey so i have a little problem, When you're near in a mapped place and you try to EditPlayerObject, it doesn't work.
If i go away from that mapped place, it does work.
What's the matter, is there anyway to fix it? I've used Streamer_Update but still it doesn't work


Re: EditPlayerObject - NaS - 12.11.2018

EditPlayerObject for Streamer Objects is not quite doing what you expect, since the Player Object ID won't be equal to the Streamer's Object ID.
Use EditDynamicObject.


Re: EditPlayerObject - d3Pedro - 12.11.2018

Quote:
Originally Posted by NaS
Посмотреть сообщение
EditPlayerObject for Streamer Objects is not quite doing what you expect, since the Player Object ID won't be equal to the Streamer's Object ID.
Use EditDynamicObject.
Yea i know it's not for streamer objects, but i used streamer_update because the nearby mapped objects are CreateDynamicObject.

Anyway, thanks for your reply, will change it.


Re: EditPlayerObject - NaS - 12.11.2018

Quote:
Originally Posted by ConnorW
Посмотреть сообщение
Yea i know it's not for streamer objects, but i used streamer_update because the nearby mapped objects are CreateDynamicObject.

Anyway, thanks for your reply, will change it.
You can use EditPlayerObject too, but you'll need to get the corresponding Player Object ID from the Streamer Object (Streamer_GetInternalID or so).
But that isn't really neccessary as EditDynamicObject does that for you

Not sure what Streamer_Update should do in this case.


Re: EditPlayerObject - d3Pedro - 12.11.2018

Quote:
Originally Posted by NaS
Посмотреть сообщение
You can use EditPlayerObject too, but you'll need to get the corresponding Player Object ID from the Streamer Object (Streamer_GetInternalID or so).
But that isn't really neccessary as EditDynamicObject does that for you

Not sure what Streamer_Update should do in this case.
Changed it and works perfectly fine, thanks.
As for the Streamer_Update, i had an issue with EditDynamicObject before, it wasn't showing the edit options, and Streamer_Update fixed it.