25.08.2015, 18:19
Hello,
As you may know, the AttachObjectToObject has a "SyncRotation" parameter, which changes the position of the attached object when the base object is rotated. When I try to get the position of the attached object, the old position (before attaching) is displayed (GetObjectPos), so I can't get the positions with attaching a object to the first one.
Basically, I need something like
(which simulates SyncRotation when set to 1, so it changes the returned position based on the specified offsets and also based on the objectid's position and ROTATION).
I think this is why Incognito is also fixing this problem: https://github.com/samp-incognito/sa...ugin/issues/68 . I think he can't manage to do this calculation.
As you may know, the AttachObjectToObject has a "SyncRotation" parameter, which changes the position of the attached object when the base object is rotated. When I try to get the position of the attached object, the old position (before attaching) is displayed (GetObjectPos), so I can't get the positions with attaching a object to the first one.
Basically, I need something like
pawn Код:
GetPosFromObjectOffset( objectid, Float:oX, Float:oY, Float:oZ, &Float:X, &Float:Y, &Float:Z );
I think this is why Incognito is also fixing this problem: https://github.com/samp-incognito/sa...ugin/issues/68 . I think he can't manage to do this calculation.