SA-MP Forums Archive
What function is this? - 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: What function is this? (/showthread.php?tid=631728)



What function is this? - Tirael - 03.04.2017

I am creating a system to position objects and my doubt is when pressing the diskkete that function will be called?




Re: What function is this? - Toroi - 03.04.2017

Either https://sampwiki.blast.hk/wiki/OnPlayerEditAttachedObject if it's an attached object or https://sampwiki.blast.hk/wiki/OnPlayerEditObject if not.

They are also called when pressing ESC in the selection.


Re: What function is this? - ISmokezU - 03.04.2017

That's saving it.

Quote:

response 0 if they cancelled (ESC) or 1 if they clicked the save icon.




Respuesta: What function is this? - Tirael - 03.04.2017

It works for me, thank you very much. How can I get the angle of the object to save it?


Re: What function is this? - Toroi - 03.04.2017

PHP код:
(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ
Float:fX, Float:fY, Float:fZ = Position
Float:fRotX, Float:fRotY, Float:fRotZ = Angle (rotation)