AttachObjectToObject
#1

The title says all. Is it posible? I can't find it (I saw a topic but it asking for it too and no answer).
Reply
#2

It's not a native function, but yes, it's possible.

Just set the object on an offset to another. When the object moves (MoveObject), do the same with the other, just applying the same offsets to the destination. Same to be done with SetObjectPos.
Reply
#3

What about the object is attached to another object? So it will be Object -> Object -> Object.
Or the object is moved by explosion or something.
It's kinda hard to make but still posible I guess.
Reply
#4

Then just make the object offset of the third object double that of what it was for the second (first attached) object.

As far as them moved without the script doing so, like a player knocking into it, the only solution I could think of is making a timer that would constantly check the original object's position, and to re-apply the offset of the following objects.
Reply
#5

Wow that would be a timer spam.
Reply
#6

You wouldn't need a tiny interval timer. I don't think anyone would die seeing the object slightly off of the other for 5 seconds. And a 5 second timer is hardly considered spam, even a 1 second timer.
Reply
#7

I guess I have a better idea.
Thanks to'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)