21.02.2015, 14:17
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
Of course when am loading object i set ObjectPosions.
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 ] ); }