SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/03/2013, 08:35 PM   #1
adri1
Banned
 
Join Date: Oct 2010
Posts: 1,779
Reputation: 965
Default Is possible move object attached to object?

Hi, I think is imposibol, but:

Is possible move object attached (AttachObjectToObject)

example:
pawn Code:
new object = CreateObject...
new object2 = CreateObject...
AttachObjectToObject(object2, object...

//...
new Float:pos[3];
GetObjectPos(object2, pos[0], pos[1], pos[2]);
MoveObject(object2, pos[0]+1, pos[1], pos[2]);

I think is imposibol because object2 is attached to objec. But there is something similar?
Thanks.
adri1 is offline   Reply With Quote
Old 09/03/2013, 10:18 PM   #2
mastermax7777
Huge Clucker
 
Join Date: Oct 2012
Posts: 380
Reputation: -46
Default Re: Is possible move object attached to object?

try it.. and see?
mastermax7777 is offline   Reply With Quote
Old 09/03/2013, 10:51 PM   #3
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,234
Reputation: 1001
Default Re: Is possible move object attached to object?

Quote:
Originally Posted by mastermax7777 View Post
try it.. and see?
Not very helpful, are you?

No, it's not possible.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 10/03/2013, 12:54 AM   #4
2KY
Gangsta
 
2KY's Avatar
 
Join Date: Jan 2012
Location: United States
Posts: 949
Reputation: 166
Default Re: Is possible move object attached to object?

It's not directly possible, but I guess you could make a relatively fast timer (25-50ms depending on factors) and get the position of the object you wish to attach it to, and with some math set the position of the other object next to it, appearing as if it's attached.
__________________
Check out my wiki page
2KY 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
Move attached object ? (please :( ) Papacool Scripting Help 5 05/12/2017 08:15 PM
Looking for an attached object ! Amine_Mejrhirrou Scripting Help 3 02/12/2012 01:20 AM
Move attached object ? Papacool Scripting Help 2 07/05/2012 04:24 PM
move object wiht command then auto move back slymatt Help Archive 8 25/07/2011 01:27 AM
Help With Attached Object SmileyForCheat Help Archive 0 30/06/2011 11:26 AM


All times are GMT. The time now is 04:40 PM.


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