DarkflameServer/dScripts/WblRobotCitizen.cpp
Aaron Kimbre 2946a612fb remove unused headers
comment about how controllable physics is the correct way to do this
right now they have moving plat comps, and that is not correct
2022-09-03 22:26:00 -05:00

20 lines
692 B
C++

#include "WblRobotCitizen.h"
#include "GameMessages.h"
void WblRobotCitizen::OnStartup(Entity* self) {
// TODO: make it move via controllable physics
}
void WblRobotCitizen::OnUse(Entity* self, Entity* user) {
auto movingPlatformComponent = self->GetComponent<MovingPlatformComponent>();
if (movingPlatformComponent) movingPlatformComponent->StopPathing();
auto face = NiQuaternion::LookAt(self->GetPosition(), user->GetPosition());
self->SetRotation(face);
GameMessages::SendPlayAnimation(self, u"wave");
self->AddTimer("animation time", m_AnimationTime);
}
void WblRobotCitizen::OnTimerDone(Entity* self, std::string timerName) {
// TODO: make it move via controllable physics
}