Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Hello! does anyone know if `MotionMaster::MovePoint` is synchronous? It looks like it is not...

[DiscordArchive] Hello! does anyone know if `MotionMaster::MovePoint` is synchronous? It looks like it is not...

[DiscordArchive] Hello! does anyone know if `MotionMaster::MovePoint` is synchronous? It looks like it is not...

rektbyfaith
Administrator
0
01-26-2023, 04:41 AM
#1
Archived author: radicalplants • Posted: 2023-01-26T04:41:57.265000+00:00
Original source

Hello! does anyone know if `MotionMaster::MovePoint` is synchronous? It looks like it is not...

In order to wait for a `::MovePoint` movement to complete should I be polling `MotionMaster::GetDestination` or just `MotionMaster::Empty` instead?
rektbyfaith
01-26-2023, 04:41 AM #1

Archived author: radicalplants • Posted: 2023-01-26T04:41:57.265000+00:00
Original source

Hello! does anyone know if `MotionMaster::MovePoint` is synchronous? It looks like it is not...

In order to wait for a `::MovePoint` movement to complete should I be polling `MotionMaster::GetDestination` or just `MotionMaster::Empty` instead?

rektbyfaith
Administrator
0
01-26-2023, 04:50 AM
#2
Archived author: ModoX • Posted: 2023-01-26T04:50:59.956000+00:00
Original source

For a script you can just use MovementInform hook
rektbyfaith
01-26-2023, 04:50 AM #2

Archived author: ModoX • Posted: 2023-01-26T04:50:59.956000+00:00
Original source

For a script you can just use MovementInform hook

rektbyfaith
Administrator
0
01-26-2023, 04:59 AM
#3
Archived author: radicalplants • Posted: 2023-01-26T04:59:44.446000+00:00
Original source

Ahh good stuff, thank you!!!
rektbyfaith
01-26-2023, 04:59 AM #3

Archived author: radicalplants • Posted: 2023-01-26T04:59:44.446000+00:00
Original source

Ahh good stuff, thank you!!!

rektbyfaith
Administrator
0
01-26-2023, 05:17 AM
#4
Archived author: radicalplants • Posted: 2023-01-26T05:17:45.053000+00:00
Original source

It looks like this won't work if the unit dispatching the movement is a Player
> `void PointMovementGenerator<T>::MovementInform(T*) { }`
rektbyfaith
01-26-2023, 05:17 AM #4

Archived author: radicalplants • Posted: 2023-01-26T05:17:45.053000+00:00
Original source

It looks like this won't work if the unit dispatching the movement is a Player
> `void PointMovementGenerator<T>::MovementInform(T*) { }`

rektbyfaith
Administrator
0
01-26-2023, 05:24 AM
#5
Archived author: ModoX • Posted: 2023-01-26T05:24:05.649000+00:00
Original source

Thats true yes
rektbyfaith
01-26-2023, 05:24 AM #5

Archived author: ModoX • Posted: 2023-01-26T05:24:05.649000+00:00
Original source

Thats true yes

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