mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 13:33:35 +00:00
Script: Fix unupdated new component (#1236)
This commit is contained in:
parent
aab60567ba
commit
025ff593ce
@ -15,7 +15,7 @@ void NtFactionSpyServer::OnStartup(Entity* self) {
|
||||
// Set the proximity to sense later
|
||||
auto* proximityMonitor = self->GetComponent<ProximityMonitorComponent>();
|
||||
if (proximityMonitor == nullptr) {
|
||||
self->AddComponent<ProximityMonitorComponent>(-1, -1);
|
||||
proximityMonitor = self->AddComponent<ProximityMonitorComponent>(-1, -1);
|
||||
}
|
||||
|
||||
proximityMonitor->SetProximityRadius(self->GetVar<float_t>(m_SpyProximityVariable), m_ProximityName);
|
||||
|
Loading…
Reference in New Issue
Block a user