Thanks for your tip !
ProcessRemoteFunction wasn’t called at all, because GetNetDriver is, I think, not correctly implemented, at least in the 4.12 branch.
Previous code:
UNetDriver* AActor::GetNetDriver() const
{
UWorld *World = GetWorld();
if (NetDriverName == NAME_GameNetDriver)
{
return (World ? World->GetNetDriver() : nullptr);
}
return GEngine->FindNamedNetDriver(World, NetDriverName);
}
I changed it to:
UNetDriver* AActor::GetNetDriver() const
{
UWorld *World = GetWorld();
if (NetDriverName == NAME_GameNetDriver)
{
return (World ? World->DemoNetDriver : nullptr); //<<-this
}
return GEngine->FindNamedNetDriver(World, NetDriverName);
}
And now it works fine.
Thanks a lot.