Closed Pottus closed 6 years ago
LastGroupPosition
?
Yes so it doesn't snap ahead.
Yeah, it's quite annoying. Adding when I get the chance.
So in EDIT_RESPONSE_FINAL
I need to change this
offx = (ObjectData[i][oX] + (x - gCenterX)) - PivotOffset[playerid][xPos];
offy = (ObjectData[i][oY] + (y - gCenterY)) - PivotOffset[playerid][yPos];
offz = (ObjectData[i][oZ] + (z - gCenterZ)) - PivotOffset[playerid][zPos];
to this?
offx = (ObjectData[i][oX] + (LastGroupPosition[playerid][xPos] - gCenterX)) - PivotOffset[playerid][xPos];
offy = (ObjectData[i][oY] + (LastGroupPosition[playerid][yPos] - gCenterY)) - PivotOffset[playerid][yPos];
offz = (ObjectData[i][oZ] + (LastGroupPosition[playerid][zPos] - gCenterZ)) - PivotOffset[playerid][zPos];
EDIT: I was looking for confirmation @Pottus... xD
Use the LAST update position to save group edits there is a bug in SA-MP that causes the update to not update the last position once a object has stopped moving.