Author Topic: Re-Ghosting all player-objects [Server Sided]  (Read 748 times)

Is there a way to force a client to re-ghost all the player objects?

Or is that what I'm doing here?
Code: [Select]
%count = missionCleanup.getCount();
for(%i = %count - 1; %i > 0; %i--)
{
%col = missionCleanup.getObject(%i);

if(%col.getType() & $TypeMasks::PlayerObjectType)
%col.scopeToClient(%client);
}

Edit:
Did this with Zeblote's selective ghosting, with help
Code: [Select]
function reGhostAllPlayers()
{
for(%a = 0; %a < ClientGroup.getCount(); %a++)
{
%client = ClientGroup.getObject(%a);
if(%client.hasSpawnedOnce)
{
for(%b = 0; %b < ClientGroup.getCount(); %b ++)
{
%client2 = ClientGroup.getObject(%b);
%obj = %client2.player;

if(isObject(%obj))
{
%obj.clearScopeAlways();
%obj.setNetFlag(6,1);

%obj.scopeToClient(%client);
}
}
}
}
}
but it still bugs out so idk, I'm going to resort to finding another solution b/c even when this does work, it doesn't suffice for what I need.
« Last Edit: September 02, 2016, 01:02:49 PM by --LegoPepper-- »