[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?
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?
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
![[Image: unknown.png?ex=690be62e&is=690a94ae&hm=6...5013ca6c9&]](https://cdn.discordapp.com/attachments/284323424032129024/1000191777262813385/unknown.png?ex=690be62e&is=690a94ae&hm=6ad6cf42b180260ea7abe238554a0b5587f7c810e00b97a5c8fda635013ca6c9&)
Archived author: Linguster • Posted: 2022-07-23T00:05:02.529000+00:00
Original source
![[Image: unknown.png?ex=690be62e&is=690a94ae&hm=6...5013ca6c9&]](https://cdn.discordapp.com/attachments/284323424032129024/1000191777262813385/unknown.png?ex=690be62e&is=690a94ae&hm=6ad6cf42b180260ea7abe238554a0b5587f7c810e00b97a5c8fda635013ca6c9&)
Archived author: Linguster • Posted: 2022-07-23T00:05:23.096000+00:00
Original source
Would something like that be possible?
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
}
}```