Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] once i start a creature moving with `me->GetMotionMaster()->MovePath()`, how do i stop it before the

[DiscordArchive] once i start a creature moving with `me->GetMotionMaster()->MovePath()`, how do i stop it before the

[DiscordArchive] once i start a creature moving with `me->GetMotionMaster()->MovePath()`, how do i stop it before the

rektbyfaith
Administrator
0
10-25-2023, 05:26 AM
#1
Archived author: KJack • Posted: 2023-10-25T05:26:13.994000+00:00
Original source

once i start a creature moving with `me->GetMotionMaster()->MovePath()`, how do i stop it before the path completes?

I've tried...
- `me->GetMotionMaster()->Clear()` doesn't work
- `me->StopMoving()` doesn't work
- `me->AddUnitState(UNIT_STATE_ROOT);` DOES work to keep them from moving, but that can't be the right way, can it?
rektbyfaith
10-25-2023, 05:26 AM #1

Archived author: KJack • Posted: 2023-10-25T05:26:13.994000+00:00
Original source

once i start a creature moving with `me->GetMotionMaster()->MovePath()`, how do i stop it before the path completes?

I've tried...
- `me->GetMotionMaster()->Clear()` doesn't work
- `me->StopMoving()` doesn't work
- `me->AddUnitState(UNIT_STATE_ROOT);` DOES work to keep them from moving, but that can't be the right way, can it?

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