Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] I was trying to teleport the passengers of vehicles (testing with mechano-hog) along with the MO tra

[DiscordArchive] I was trying to teleport the passengers of vehicles (testing with mechano-hog) along with the MO tra

[DiscordArchive] I was trying to teleport the passengers of vehicles (testing with mechano-hog) along with the MO tra

rektbyfaith
Administrator
0
02-01-2025, 08:27 PM
#1
Archived author: Piggymorph • Posted: 2025-02-01T20:27:53.898000+00:00
Original source

I was trying to teleport the passengers of vehicles (testing with mechano-hog) along with the MO transport when it teleports (from ratchet to booty bay)
I can do the same TeleportTo() for the vehicle passengers as for the vehicle drivers (which are actual transport passengers), however they do not really teleport in the same spot, the vehicle passengers lag out a bit "behind" the transport passengers
I thought maybe it's because it takes a bit of time to register as transport passenger, so they do not have UpdatePassengerPosition() called for them

Since the transport isn't in the world when it gets teleported, I can't do AddPassenger() within it, so I tried doing it right after the AddToMap() in DelayedTeleportTransport(), but this time my vehicle passengers get teleported in an even worse spot, falling through the boat (even tho the XYZ in TeleportTo() is the same as the vehicle drivers).

Any idea what else can I try? or maybe the issue is in a different place from what I think? maybe some way to force a teleport to transport somehow?
rektbyfaith
02-01-2025, 08:27 PM #1

Archived author: Piggymorph • Posted: 2025-02-01T20:27:53.898000+00:00
Original source

I was trying to teleport the passengers of vehicles (testing with mechano-hog) along with the MO transport when it teleports (from ratchet to booty bay)
I can do the same TeleportTo() for the vehicle passengers as for the vehicle drivers (which are actual transport passengers), however they do not really teleport in the same spot, the vehicle passengers lag out a bit "behind" the transport passengers
I thought maybe it's because it takes a bit of time to register as transport passenger, so they do not have UpdatePassengerPosition() called for them

Since the transport isn't in the world when it gets teleported, I can't do AddPassenger() within it, so I tried doing it right after the AddToMap() in DelayedTeleportTransport(), but this time my vehicle passengers get teleported in an even worse spot, falling through the boat (even tho the XYZ in TeleportTo() is the same as the vehicle drivers).

Any idea what else can I try? or maybe the issue is in a different place from what I think? maybe some way to force a teleport to transport somehow?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)