#include "FvRacingColumns.h" #include "MovingPlatformComponent.h" void FvRacingColumns::OnStartup(Entity* self) { auto* movingPlatformComponent = self->GetComponent(); if (!movingPlatformComponent) return; movingPlatformComponent->StopPathing(); movingPlatformComponent->SetSerialized(true); int32_t pathStart = 0; if (self->HasVar(u"attached_path_start")) { pathStart = self->GetVar(u"attached_path_start"); } movingPlatformComponent->WarpToWaypoint(pathStart); }