SA-MP Forums Archive
EditAttachedObject get object pos... - 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: EditAttachedObject get object pos... (/showthread.php?tid=507570)



EditAttachedObject get object pos... - Lirbo - 18.04.2014

how to get the X,Y,Z of the Attached object? (for saving..)
Sorry for bad english


Re: EditAttachedObject get object pos... - Conradus - 18.04.2014

When you're done editing an attached object, this callback is being called:
Код:
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
    ....
}
So you can use OffsetX, fOffsetY, fOffsetZ, fRotX,fRotY, fRotZ, fScaleX, fScaleY, fScaleZ to save your attached object.

More info here


Re: EditAttachedObject get object pos... - Lirbo - 18.04.2014

Quote:
Originally Posted by Conradus
Посмотреть сообщение
removed
Umm what?


Re: EditAttachedObject get object pos... - Conradus - 18.04.2014

Quote:
Originally Posted by Lirbo
Посмотреть сообщение
Umm what?
Sorry, I edited my post