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

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

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

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

Is there a way to check if a player is inside arena, specifically 3v3 arena? Would that be possible to check for inside an aurascript?
rektbyfaith
07-22-2022, 11:36 PM #1

Archived author: Linguster • Posted: 2022-07-22T23:36:17.746000+00:00
Original source

Is there a way to check if a player is inside arena, specifically 3v3 arena? Would that be possible to check for inside an aurascript?

rektbyfaith
Administrator
0
07-23-2022, 02:58 AM
#2
Archived author: r4dish • Posted: 2022-07-23T02:58:37.089000+00:00
Original source

```c++
Battleground* bg = player->GetBattleground();
if (bg && bg->isArena() && bg->GetArenaType() == ARENA_TYPE_3v3)
{
// do something
}
```
rektbyfaith
07-23-2022, 02:58 AM #2

Archived author: r4dish • Posted: 2022-07-23T02:58:37.089000+00:00
Original source

```c++
Battleground* bg = player->GetBattleground();
if (bg && bg->isArena() && bg->GetArenaType() == ARENA_TYPE_3v3)
{
// do something
}
```

rektbyfaith
Administrator
0
07-23-2022, 03:01 AM
#3
Archived author: r4dish • Posted: 2022-07-23T03:01:24.297000+00:00
Original source

"isArena" might be redundant in this case, but I'm not sure. Anyway, it should work.
rektbyfaith
07-23-2022, 03:01 AM #3

Archived author: r4dish • Posted: 2022-07-23T03:01:24.297000+00:00
Original source

"isArena" might be redundant in this case, but I'm not sure. Anyway, it should work.

rektbyfaith
Administrator
0
07-23-2022, 03:08 AM
#4
Archived author: M'Dic • Posted: 2022-07-23T03:08:27.988000+00:00
Original source

```cpp
Battleground* bg = player->GetBattleground();
if (bg->GetArenaType() == ARENA_TYPE_3v3)
{
// do something
}```
rektbyfaith
07-23-2022, 03:08 AM #4

Archived author: M'Dic • Posted: 2022-07-23T03:08:27.988000+00:00
Original source

```cpp
Battleground* bg = player->GetBattleground();
if (bg->GetArenaType() == ARENA_TYPE_3v3)
{
// do something
}```

rektbyfaith
Administrator
0
07-23-2022, 03:08 AM
#5
Archived author: M'Dic • Posted: 2022-07-23T03:08:52.175000+00:00
Original source

bg && bg->isArena() seems to be the redundant part to me atleast
rektbyfaith
07-23-2022, 03:08 AM #5

Archived author: M'Dic • Posted: 2022-07-23T03:08:52.175000+00:00
Original source

bg && bg->isArena() seems to be the redundant part to me atleast

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