2021-04-27, 03:05 PM
you can easy get offset from object editor by using this function when you actor is on z_angle 0.0
Code:
x,y,z - actor position
tx,ty,tz - object position
rx = 0.0, ry = 0.0,rz = 0
ShiftPositionToOffset(Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,&Float:offset_x,&Float:offset_y,&Float:offset_z,Float:tx,Float:ty,Float:tz);