08.05.2018, 00:40
You could go through all the models you want and save offsets based on the model then use the allobject array to translate your offsets for every instance of an object in game.
https://sampforum.blast.hk/showthread.php?tid=415397
https://pastebin.com/2E1zvxn7
Specifically the function at line 509
https://sampforum.blast.hk/showthread.php?tid=415397
https://pastebin.com/2E1zvxn7
Specifically the function at line 509
Код:
AttachObjectToObjectEx(attachoid, Float:off_x, Float:off_y, Float:off_z, Float:rot_x, Float:rot_y, Float:rot_z, &Float:X, &Float:Y, &Float:Z, &Float:RX, &Float:RY, &Float:RZ, pobject = -1) // By Stylock - http://forum.sa-mp.com/member.php?u=114165