[DiscordArchive] does anybody know what the core functions are to check whether a unit is fleeing and whether a unit
[DiscordArchive] does anybody know what the core functions are to check whether a unit is fleeing and whether a unit
Archived author: Nocty1501 • Posted: 2023-12-05T08:27:53.175000+00:00
Original source
does anybody know what the core functions are to check whether a unit is fleeing and whether a unit is stunned/sleeping/polymorphed (unable to move or act)?
Archived author: Nocty1501 • Posted: 2023-12-05T08:42:42.037000+00:00
Original source
`unit->HasUnitState(UNIT_STATE_CONFUSED | UNIT_STATE_FLEEING)` is probably it, right?
Archived author: Nocty1501 • Posted: 2023-12-05T08:45:34.515000+00:00
Original source
would this crash horribly if `unit` is a player entity? <:thonk:1036193578864615504>
Archived author: Anchy • Posted: 2023-12-05T08:48:15.952000+00:00
Original source
no
Archived author: Anchy • Posted: 2023-12-05T08:48:19.934000+00:00
Original source
the player has unit states as well
Archived author: Anchy • Posted: 2023-12-05T08:48:40.227000+00:00
Original source
for example, a hunter has a unit state of UNIT_STATE_DIED while using feign death
Archived author: Nocty1501 • Posted: 2023-12-05T08:50:30.788000+00:00
Original source
there's something hilarious about this
Archived author: Nocty1501 • Posted: 2023-12-05T08:54:07.454000+00:00
Original source
this is perfect, thank you!
Archived author: Nocty1501 • Posted: 2023-12-05T08:54:15.980000+00:00
Original source
(better hope my hack of a hack works)
Archived author: Nocty1501 • Posted: 2023-12-05T09:36:09.158000+00:00
Original source
IT WORKS!