mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +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");
|
|
}
|