Hey Hey.
I am trying to spawn a an Actor that has a spline component with an RPC call, But when I enter the console command show spines’ It only shows on one of the clients.
Any ideas how I can add a spline on one client so it replicates to the other?
I have this code:
void ATrail::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
Server_AddTrail();
}
void ATrail::Server_AddTrail_Implementation()
{
if (IsValid(TrailSpawn) && shouldGrow) {
Spline->AddSplinePoint(TrailSpawn->GetComponentLocation(), ESplineCoordinateSpace::World, true);
}
}
bool ATrail::Server_AddTrail_Validate()
{
return true;
}