Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] when is it needed to do GetCaster()->ToPlayer()?

[DiscordArchive] when is it needed to do GetCaster()->ToPlayer()?

[DiscordArchive] when is it needed to do GetCaster()->ToPlayer()?

rektbyfaith
Administrator
0
02-08-2024, 02:27 PM
#1
Archived author: Mematoru • Posted: 2024-02-08T14:27:15.876000+00:00
Original source

when is it needed to do GetCaster()->ToPlayer()?
rektbyfaith
02-08-2024, 02:27 PM #1

Archived author: Mematoru • Posted: 2024-02-08T14:27:15.876000+00:00
Original source

when is it needed to do GetCaster()->ToPlayer()?

rektbyfaith
Administrator
0
02-08-2024, 02:27 PM
#2
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
rektbyfaith
02-08-2024, 02:27 PM #2

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

rektbyfaith
Administrator
0
02-08-2024, 02:28 PM
#3
Archived author: ModoX • Posted: 2024-02-08T14:28:08.125000+00:00
Original source

GetCaster() returns Unit*
rektbyfaith
02-08-2024, 02:28 PM #3

Archived author: ModoX • Posted: 2024-02-08T14:28:08.125000+00:00
Original source

GetCaster() returns Unit*

rektbyfaith
Administrator
0
02-08-2024, 02:28 PM
#4
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
rektbyfaith
02-08-2024, 02:28 PM #4

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

rektbyfaith
Administrator
0
02-08-2024, 02:29 PM
#5
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
rektbyfaith
02-08-2024, 02:29 PM #5

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

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