Building Floats
#1

Hey!

Just wondering, is there any way like an include or something that would get all the buildings or most of them, floats in front of building, so I could make a pickup there which would later be used to enter a house / building.. or would you actually have to go one by one and save coordinates of buildings..
Reply
#2

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
Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)