[DiscordArchive] when is it needed to do GetCaster()->ToPlayer()?
[DiscordArchive] when is it needed to do GetCaster()->ToPlayer()?
Archived author: Mematoru • Posted: 2024-02-08T14:27:15.876000+00:00
Original source
when is it needed to do GetCaster()->ToPlayer()?
Archived author: ModoX • Posted: 2024-02-08T14:27:52.121000+00:00
Original source
When you need to access anything specific to Player class only
Archived author: ModoX • Posted: 2024-02-08T14:28:08.125000+00:00
Original source
GetCaster() returns Unit*
Archived author: ModoX • Posted: 2024-02-08T14:28:56.665000+00:00
Original source
Example being checking quest status. Only players may have quests, so you have to cast to player first
Archived author: Mematoru • Posted: 2024-02-08T14:29:31.481000+00:00
Original source
oh ok cuz i couldnt find an example in ma head