Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Is there a way to check if a player is inside arena, specifically 3v3 arena?

[DiscordArchive] Is there a way to check if a player is inside arena, specifically 3v3 arena?

[DiscordArchive] Is there a way to check if a player is inside arena, specifically 3v3 arena?

rektbyfaith
Administrator
0
07-22-2022, 11:35 PM
#1
Archived author: Linguster • Posted: 2022-07-22T23:35:16.506000+00:00
Original source

Is there a way to check if a player is inside arena, specifically 3v3 arena?
rektbyfaith
07-22-2022, 11:35 PM #1

Archived author: Linguster • Posted: 2022-07-22T23:35:16.506000+00:00
Original source

Is there a way to check if a player is inside arena, specifically 3v3 arena?

rektbyfaith
Administrator
0
07-23-2022, 12:04 AM
#2
Archived author: Linguster • Posted: 2022-07-23T00:04:59.089000+00:00
Original source

Can someone guide me, I'm not sure if a class like Battleground can be called like this
rektbyfaith
07-23-2022, 12:04 AM #2

Archived author: Linguster • Posted: 2022-07-23T00:04:59.089000+00:00
Original source

Can someone guide me, I'm not sure if a class like Battleground can be called like this

rektbyfaith
Administrator
0
07-23-2022, 12:05 AM
#3
Archived author: Linguster • Posted: 2022-07-23T00:05:02.529000+00:00
Original source


[Image: unknown.png?ex=690be62e&is=690a94ae&hm=6...5013ca6c9&]
rektbyfaith
07-23-2022, 12:05 AM #3

Archived author: Linguster • Posted: 2022-07-23T00:05:02.529000+00:00
Original source


[Image: unknown.png?ex=690be62e&is=690a94ae&hm=6...5013ca6c9&]

rektbyfaith
Administrator
0
07-23-2022, 12:05 AM
#4
Archived author: Linguster • Posted: 2022-07-23T00:05:23.096000+00:00
Original source

Would something like that be possible?
rektbyfaith
07-23-2022, 12:05 AM #4

Archived author: Linguster • Posted: 2022-07-23T00:05:23.096000+00:00
Original source

Would something like that be possible?

rektbyfaith
Administrator
0
07-23-2022, 04:03 AM
#5
Archived author: Anchy • Posted: 2022-07-23T04:03:46.807000+00:00
Original source

Something like this maybe?```cpp
Unit* unit = GetUnitOwner();
if (unit && unit->IsPlayer())
{
Player* player = unit->ToPlayer();
Battleground* bg = player->GetBattleground();
if (bg && bg->isArena() && bg->GetArenaType() == ARENA_TYPE_2v2)
{
//Do Stuff
}
}```
rektbyfaith
07-23-2022, 04:03 AM #5

Archived author: Anchy • Posted: 2022-07-23T04:03:46.807000+00:00
Original source

Something like this maybe?```cpp
Unit* unit = GetUnitOwner();
if (unit && unit->IsPlayer())
{
Player* player = unit->ToPlayer();
Battleground* bg = player->GetBattleground();
if (bg && bg->isArena() && bg->GetArenaType() == ARENA_TYPE_2v2)
{
//Do Stuff
}
}```

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