OnPlayerEditDynamicObject
#1

Hi,

In this callback i want when player cancel editing i want back object to first position. But when i use SetDynamicObjectPos, object no position change it stay in same place where was canceled... I use global variables

Код:
new ObjectPosions[ 10000 ][ 3 ];

When player 

if(response == EDIT_RESPONSE_FINAL)
		{
ObjectPosions[ objectid ][ 0 ] = x12;
ObjectPosions[ objectid ][ 1 ] = y12;
ObjectPosions[ objectid ][ 2 ] = z12;
}
else
{
SetDynamicObjectPos(objectid,ObjectPosions[ objectid ][ 0 ],ObjectPosions[ objectid ][ 1 ],ObjectPosions[ objectid ][ 2 ] );
}
Of course when am loading object i set ObjectPosions.
Reply
#2

Check if OnPlayerEditDynamicObject() is even being called.
Reply
#3

Yes called i have messages and i can them.
Reply
#4

wrong sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)