DarkflameServer/dScripts/NjhubLavaPlayerDeathTrigger.cpp

10 lines
242 B
C++
Raw Normal View History

#include "NjhubLavaPlayerDeathTrigger.h"
#include "Entity.h"
2022-07-28 13:39:57 +00:00
void NjhubLavaPlayerDeathTrigger::OnCollisionPhantom(Entity* self, Entity* target) {
if (!target->IsPlayer())
return;
2022-07-28 13:39:57 +00:00
target->Smash(self->GetObjectID(), VIOLENT, u"drown");
}