Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Trying to do this void OnCombatStart(Unit* who, bool first) override and on "OnCombatStart" is givi

[DiscordArchive] Trying to do this void OnCombatStart(Unit* who, bool first) override and on "OnCombatStart" is givi

[DiscordArchive] Trying to do this void OnCombatStart(Unit* who, bool first) override and on "OnCombatStart" is givi

rektbyfaith
Administrator
0
08-08-2024, 03:58 PM
#1
Archived author: Rafael • Posted: 2024-08-08T15:58:28.714000+00:00
Original source

Trying to do this void OnCombatStart(Unit* who, bool first) override and on "OnCombatStart" is giving me error what would be the correct function for it?
rektbyfaith
08-08-2024, 03:58 PM #1

Archived author: Rafael • Posted: 2024-08-08T15:58:28.714000+00:00
Original source

Trying to do this void OnCombatStart(Unit* who, bool first) override and on "OnCombatStart" is giving me error what would be the correct function for it?

rektbyfaith
Administrator
0
08-08-2024, 04:05 PM
#2
Archived author: Revision • Posted: 2024-08-08T16:05:11.279000+00:00
Original source

There is no such function.
[Image: image.png?ex=690c1e77&is=690accf7&hm=8b1...21c25db7f&]
rektbyfaith
08-08-2024, 04:05 PM #2

Archived author: Revision • Posted: 2024-08-08T16:05:11.279000+00:00
Original source

There is no such function.
[Image: image.png?ex=690c1e77&is=690accf7&hm=8b1...21c25db7f&]

rektbyfaith
Administrator
0
08-08-2024, 04:10 PM
#3
Archived author: Revision • Posted: 2024-08-08T16:10:04.679000+00:00
Original source

Depending on what you want, you have these
**Player**
```cpp
void OnPlayerEnterCombat(Player* /*player*/, Unit* /*enemy*/)
```
**Unit**
```cpp
void OnUnitEnterCombat(Unit* /*unit*/, Unit* /*victim*/)
```
rektbyfaith
08-08-2024, 04:10 PM #3

Archived author: Revision • Posted: 2024-08-08T16:10:04.679000+00:00
Original source

Depending on what you want, you have these
**Player**
```cpp
void OnPlayerEnterCombat(Player* /*player*/, Unit* /*enemy*/)
```
**Unit**
```cpp
void OnUnitEnterCombat(Unit* /*unit*/, Unit* /*victim*/)
```

Recently Browsing
 
Recently Browsing