mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
2cf92a16d2
ignore frog script
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");
|
|
}
|