[DiscordArchive] how check have trigger in game or not ?
[DiscordArchive] how check have trigger in game or not ?
Archived author: JeimonkAs • Posted: 2024-03-02T17:26:51.696000+00:00
Original source
how check have trigger in game or not ?
Archived author: Naddley • Posted: 2024-03-02T17:33:20.950000+00:00
Original source
you can see the position of the AreaTrigger with .debug Areatrigger
Archived author: JeimonkAs • Posted: 2024-03-02T17:36:53.092000+00:00
Original source
ty alot )
Archived author: JeimonkAs • Posted: 2024-03-02T17:52:58.174000+00:00
Original source
```
class into_the_cauldron : public AreaTriggerAI
{
public:
into_the_cauldron(AreaTrigger* areaTrigger) : AreaTriggerAI(areaTrigger) { }
void OnUnitEnter(Unit* unit) override
{
Player* player = unit->ToPlayer();
if (player->GetQuestStatus(64866) == QUEST_STATUS_INCOMPLETE)
{
player->KilledMonsterCredit(181597);
}
}
};
```
can you look at this , what there wrong ?
Archived author: Naddley • Posted: 2024-03-02T17:56:32.329000+00:00
Original source
we have some examples in scripts like zone_mardum. Feel free to try to look at them first
Archived author: JeimonkAs • Posted: 2024-03-02T17:58:00.557000+00:00
Original source
good ty