DarkflameServer/dScripts/NjhubLavaPlayerDeathTrigger.cpp

11 lines
255 B
C++
Raw Normal View History

#include "NjhubLavaPlayerDeathTrigger.h"
#include "Entity.h"
void NjhubLavaPlayerDeathTrigger::OnCollisionPhantom(Entity *self, Entity *target)
{
if (!target->IsPlayer())
return;
target->Smash(self->GetObjectID(), VIOLENT, u"drown");
}