SA-MP Forums Archive
Attach object to vehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Attach object to vehicle (/showthread.php?tid=266876)



Attach object to vehicle - sim_sima - 06.07.2011

Hello guys.
Whats the best tool for placing objects on vehicles?

Thank you.


Re: Attach object to vehicle - sim_sima - 06.07.2011

Or what is the best way to get the coordinates?


Re: Attach object to vehicle - Noner - 06.07.2011

You can use MTA map editor if you want to place objects/vehicles... I did not understand this.


Re: Attach object to vehicle - Wesley221 - 06.07.2011

I suggest you use this program: Click me
Then get the vehicle you want, put the vehicle at coцrds: 0, 0, 0
Do NOT rotate the vehicle, replace it, just let him stay at the coords. Then just place the objects on it, and then you get the code lines, and there u got your items on the vehicle


Re: Attach object to vehicle - sim_sima - 06.07.2011

Quote:
Originally Posted by Wesley221
View Post
I suggest you use this program: Click me
Then get the vehicle you want, put the vehicle at coцrds: 0, 0, 0
Do NOT rotate the vehicle, replace it, just let him stay at the coords. Then just place the objects on it, and then you get the code lines, and there u got your items on the vehicle
Oh, so i can place vehicles with this program?
Because i actually have it on my computer already


Re: Attach object to vehicle - sim_sima - 06.07.2011

I dont know if you got my question right.
Just to make things clear:
How can I place an object on a vehicle and get the coordinates, so I can use AttachObjectToVehicle?


Re: Attach object to vehicle - Wesley221 - 06.07.2011

Let me explain it step-for-step:
Code:
#1: Open editor.exe
#2: Press start, and let the program load the map
#3: Move to the tab "objects", and press "add"
#4: Search the vehicle id: example (451(turismo))
#5: Press "add", so it loads in your "objects collection"
#6: Click on your vehicle, and press "insert" when your mouse is on the map
#7: Select the object, and change the coцrds to "0, 0, 0" Note: This is still in the "objects" tab
#8: Go to the tab "views", and enter at the "Camera View" "0, 0, 0" and press "Point Camera at these coords"
Now you can see the vehicle, move around with right mouse pressed, and move the camera with "wasd"
#9: Go to objects tab, add the objects to your collection
#10: Move the objects to the vehicle
#11: If you got the items at the right position, press "Show Code" in the taskbar
#12: Copy the codes of the objects
#13: Now you got the objects, have fun placing them in your script :)



Re: Attach object to vehicle - sim_sima - 06.07.2011

Thank you everyone for helping. It works now


Re: Attach object to vehicle - Wesley221 - 06.07.2011

Anytime
Also, if you prefer to use MTA map editor, you can do it the same way as with this i explained. I just dont like using MTA


Respuesta: Re: Attach object to vehicle - Marko Koprivanac - 02.07.2012

Quote:
Originally Posted by Wesley221
View Post
Let me explain it step-for-step:
Code:
#1: Open editor.exe
#2: Press start, and let the program load the map
#3: Move to the tab "objects", and press "add"
#4: Search the vehicle id: example (451(turismo))
#5: Press "add", so it loads in your "objects collection"
#6: Click on your vehicle, and press "insert" when your mouse is on the map
#7: Select the object, and change the coцrds to "0, 0, 0" Note: This is still in the "objects" tab
#8: Go to the tab "views", and enter at the "Camera View" "0, 0, 0" and press "Point Camera at these coords"
Now you can see the vehicle, move around with right mouse pressed, and move the camera with "wasd"
#9: Go to objects tab, add the objects to your collection
#10: Move the objects to the vehicle
#11: If you got the items at the right position, press "Show Code" in the taskbar
#12: Copy the codes of the objects
#13: Now you got the objects, have fun placing them in your script :)
Is there any filterscript for this that support 0.3e police light ??