mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Update Entity.cpp
This commit is contained in:
parent
a923a2baa7
commit
e4de42659e
@ -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<ControllablePhysicsComponent>();
|
||||
auto* characterComponent = GetComponent<CharacterComponent>();
|
||||
|
Loading…
Reference in New Issue
Block a user