SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/11/2012, 02:19 AM   #1
cluckintucker
Little Clucker
 
Join Date: Oct 2012
Posts: 49
Reputation: 5
Default [AttachObjectTovehicle] (no error, just need help )

Hello, i was just wondering how to get a vehicle pos and attach a object to that vehicle at the pos its at for ex:

/siren - it attaches it up on the roof of the vehicle.
Can someone help, appreciate it. Thanks.
__________________
we

klab

ppl

r

not ni-ce
ggood
ers
blablabla ok_299
if you OG rep me
ok_299
cluckintucker is offline   Reply With Quote
Old 30/11/2012, 03:36 AM   #2
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Re: [AttachObjectTovehicle] (no error, just need help )

When ever you attach an object to a vehicle. You dont require vehicle's positions. You just need offset's/positions where exactly it will be attached at the vehicle.
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 01/12/2012, 01:29 AM   #3
cluckintucker
Little Clucker
 
Join Date: Oct 2012
Posts: 49
Reputation: 5
Default Re: [AttachObjectTovehicle] (no error, just need help )

Quote:
Originally Posted by Ballu Miaa View Post
When ever you attach an object to a vehicle. You dont require vehicle's positions. You just need offset's/positions where exactly it will be attached at the vehicle.
im sure you do need vehicle positions because when you want to attach it at a certain position you have to have the vehicles position or if you just put it at a random position it would stay there
__________________
we

klab

ppl

r

not ni-ce
ggood
ers
blablabla ok_299
if you OG rep me
ok_299
cluckintucker is offline   Reply With Quote
Old 01/12/2012, 08:20 AM   #4
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Re: [AttachObjectTovehicle] (no error, just need help )

That is what we call the offset. It is a position on the vehicle not of the vehicle at which you want the attach the object at.
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 01/12/2012, 12:37 PM   #5
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Re: [AttachObjectTovehicle] (no error, just need help )

Quote:
Originally Posted by ****** View Post
I don't think there is a good way to find offsets beyond trial and error unfortunately; however, someone else may know of a script. As a hint, a siren will go on top, which is up on the "Z" axis, i.e. the third co-ordinate.
Exactly! However the default Offset's of any Attached Object is 0.00 , 0.00 , 0.00. Same goes for the rotation. Use default values for the offset's and see where you exactly need to attach it to.

There are many filterscript which let's the user Change the offset's according to the user.

Use this , i get Offset's using this FS.
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AttachObjectToVehicle little help LukasSLT Scripting Help 5 27/05/2012 08:25 AM
AttachObjectToVehicle TouhGear Scripting Help 4 01/04/2012 06:18 PM
[Help]AttachObjectToVehicle nemanjatesic Scripting Help 0 11/02/2012 10:03 AM
error|AttachObjectToVehicle shahartal Help Archive 6 31/07/2011 05:18 PM
[Help] AttachObjectToVehicle XePloiT Help Archive 0 14/12/2010 01:59 AM


All times are GMT. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.