mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
11 lines
322 B
C++
11 lines
322 B
C++
|
#include "WildPants.h"
|
||
|
#include "GameMessages.h"
|
||
|
|
||
|
void WildPants::OnStartup(Entity* self) {
|
||
|
self->SetProximityRadius(5, "scardyPants");
|
||
|
}
|
||
|
|
||
|
void WildPants::OnProximityUpdate(Entity* self, Entity* entering, std::string name, std::string status) {
|
||
|
if (status == "ENTER") GameMessages::SendPlayAnimation(self, u"scared");
|
||
|
}
|