From e4de42659eb0859e87b0eec1244740eac45b8cff Mon Sep 17 00:00:00 2001 From: Jett <55758076+Jettford@users.noreply.github.com> Date: Thu, 9 Dec 2021 13:56:07 +0000 Subject: [PATCH] Update Entity.cpp --- dGame/Entity.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index c98323a9..4b8aadb8 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -775,6 +775,15 @@ void Entity::Initialize() TriggerEvent("OnCreate"); + // so basically unless you leave and reenter the moonbase bubble (not something you can do), the physics effect will not trigger on the client + // one solution of this was change the OnEnter event to a OnCreate event + // but this required changing client files so instead that solution we can bodge + if (m_Trigger && Game::server->GetZoneID() == 1603) { + if (m_Trigger->id == 11) { + TriggerEvent("OnEnter"); + } + } + if (m_Character) { auto* controllablePhysicsComponent = GetComponent(); auto* characterComponent = GetComponent();