mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 15:03:34 +00:00
2946a612fb
comment about how controllable physics is the correct way to do this right now they have moving plat comps, and that is not correct
20 lines
692 B
C++
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
|
|
}
|