Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Is Unit::getRace() supposed to work on NPCs?

[DiscordArchive] Is Unit::getRace() supposed to work on NPCs?

[DiscordArchive] Is Unit::getRace() supposed to work on NPCs?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
10-26-2023, 07:30 PM
#1
Archived author: sudlud • Posted: 2023-10-26T19:30:05.928000+00:00
Original source

Is Unit::getRace() supposed to work on NPCs?
rektbyfaith
10-26-2023, 07:30 PM #1

Archived author: sudlud • Posted: 2023-10-26T19:30:05.928000+00:00
Original source

Is Unit::getRace() supposed to work on NPCs?

rektbyfaith
Administrator
0
10-26-2023, 07:34 PM
#2
Archived author: Natrist • Posted: 2023-10-26T19:34:37.086000+00:00
Original source

Yes
rektbyfaith
10-26-2023, 07:34 PM #2

Archived author: Natrist • Posted: 2023-10-26T19:34:37.086000+00:00
Original source

Yes

rektbyfaith
Administrator
0
10-26-2023, 07:35 PM
#3
Archived author: Natrist • Posted: 2023-10-26T19:35:26.847000+00:00
Original source

World of Warcraft uses an entity system of sort, back from before ECS was a hipster acronym for furry developers.
rektbyfaith
10-26-2023, 07:35 PM #3

Archived author: Natrist • Posted: 2023-10-26T19:35:26.847000+00:00
Original source

World of Warcraft uses an entity system of sort, back from before ECS was a hipster acronym for furry developers.

rektbyfaith
Administrator
0
10-26-2023, 07:38 PM
#4
Archived author: Natrist • Posted: 2023-10-26T19:38:01.438000+00:00
Original source

Objects encapsulate pretty much everything like this: objects (units (**P**layer **C**haracters, **N**on **P**layer **C**haracters), game objects)
rektbyfaith
10-26-2023, 07:38 PM #4

Archived author: Natrist • Posted: 2023-10-26T19:38:01.438000+00:00
Original source

Objects encapsulate pretty much everything like this: objects (units (**P**layer **C**haracters, **N**on **P**layer **C**haracters), game objects)

rektbyfaith
Administrator
0
10-26-2023, 07:39 PM
#5
Archived author: sudlud • Posted: 2023-10-26T19:39:38.699000+00:00
Original source

Alright thanks! I’m always getting 0 from this function when called as an NPC so was wondering if I’m using it wrong
rektbyfaith
10-26-2023, 07:39 PM #5

Archived author: sudlud • Posted: 2023-10-26T19:39:38.699000+00:00
Original source

Alright thanks! I’m always getting 0 from this function when called as an NPC so was wondering if I’m using it wrong

rektbyfaith
Administrator
0
10-26-2023, 07:44 PM
#6
Archived author: sudlud • Posted: 2023-10-26T19:44:43.698000+00:00
Original source

Im within SpellAuraEffects.cpp and get the unit as the aura target, with player it works fine, NPC gender also but race is 0
rektbyfaith
10-26-2023, 07:44 PM #6

Archived author: sudlud • Posted: 2023-10-26T19:44:43.698000+00:00
Original source

Im within SpellAuraEffects.cpp and get the unit as the aura target, with player it works fine, NPC gender also but race is 0

rektbyfaith
Administrator
0
10-26-2023, 07:45 PM
#7
Archived author: Natrist • Posted: 2023-10-26T19:45:10.109000+00:00
Original source

I'm not quite sure what the function returns exactly.
rektbyfaith
10-26-2023, 07:45 PM #7

Archived author: Natrist • Posted: 2023-10-26T19:45:10.109000+00:00
Original source

I'm not quite sure what the function returns exactly.

rektbyfaith
Administrator
0
10-26-2023, 07:45 PM
#8
Archived author: Natrist • Posted: 2023-10-26T19:45:45.051000+00:00
Original source


[Image: Screenshot_2023-10-26_at_3.45.39_PM.png?...a6d5c26bd&]
rektbyfaith
10-26-2023, 07:45 PM #8

Archived author: Natrist • Posted: 2023-10-26T19:45:45.051000+00:00
Original source


[Image: Screenshot_2023-10-26_at_3.45.39_PM.png?...a6d5c26bd&]

rektbyfaith
Administrator
0
10-26-2023, 07:46 PM
#9
Archived author: Natrist • Posted: 2023-10-26T19:46:27.905000+00:00
Original source

The highlighted line is what is being returned when the unit is not a Player Character.
rektbyfaith
10-26-2023, 07:46 PM #9

Archived author: Natrist • Posted: 2023-10-26T19:46:27.905000+00:00
Original source

The highlighted line is what is being returned when the unit is not a Player Character.

rektbyfaith
Administrator
0
10-26-2023, 07:53 PM
#10
Archived author: sudlud • Posted: 2023-10-26T19:53:27.208000+00:00
Original source

Thanks again - I’ll look deeper into this tomorrow, it seems that those field should hold the race but who knows why they’re wrong in my setup
rektbyfaith
10-26-2023, 07:53 PM #10

Archived author: sudlud • Posted: 2023-10-26T19:53:27.208000+00:00
Original source

Thanks again - I’ll look deeper into this tomorrow, it seems that those field should hold the race but who knows why they’re wrong in my setup

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)