EditDynamicObject Calls both OnPlayerEdits!
#5

Ok, nevermind.
So your problem is in OnPlayerEditDynamicObject, lines:

GetDynamicObjectPos(objectid, OX, OY, OZ);
GetDynamicObjectRot(objectid, ORX, ORY, ORZ);

It is taking the old position.

You have to use variables built in callback - OnPlayerEditDynamicObject(playerid, objectid, response, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
for new position.

So, use x, y, z, rx, ry, rz instead of your ox, oy, oz etc.
Reply


Messages In This Thread
EditDynamicObject Calls both OnPlayerEdits! - by grymtn - 23.09.2017, 19:56
Re: EditDynamicObject Calls both OnPlayerEdits! - by grymtn - 24.09.2017, 09:50
Re: EditDynamicObject Calls both OnPlayerEdits! - by raydx - 24.09.2017, 09:54
Re: EditDynamicObject Calls both OnPlayerEdits! - by grymtn - 24.09.2017, 09:59
Re: EditDynamicObject Calls both OnPlayerEdits! - by raydx - 24.09.2017, 10:10
Re: EditDynamicObject Calls both OnPlayerEdits! - by grymtn - 24.09.2017, 10:14
Re: EditDynamicObject Calls both OnPlayerEdits! - by raydx - 24.09.2017, 10:21
Re: EditDynamicObject Calls both OnPlayerEdits! - by grymtn - 24.09.2017, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)