How to know this player is the Listen server dude?

Ok basically i want to that when game is over a screen apears with a box with the score you did, and a button for the admin (listen server guy ) , well the admnisitrator, " well since i know every player controller has a movie instance ", but how do i get the listen server one, i could make the admin one " just a though i just had " but i dunno how to get the Listen Server Player Controller any ideas?

1 Like

when the player clicks the ‘host’ button set a bool
eg
admin = true

2 Likes

this will get you your listen server player who hosts the game
if(WorldInfo.NetMode == NM_ListenServer)
{
//found the host player if your in the utplayercontroller file.
}

EDIT;I gave you some bad info here in the below, when coming from the server files it will be the servers type Example are
WorldInfo.NetMode = NM_ListenServer, WorldInfo.NetMode = NM_Standalone, WorldInfo.NetMode = NM_DedicatedServer;
no matter what player you are.
but when you go to the playercontroller file from there, if you are the host of the listening server then you’ll be this WorldInfo.NetMode = NM_ListenServer all other player on listen server are WorldInfo.NetMode = NM_Client if it dedicated all are WorldInfo.NetMode = NM_Client

Hope this helps.

2 Likes

@Leomez

Mate, No!

We’re NOT talking about UE4 slop. We’re talking about UDK scripting stuff; UnrealScript, not Unreal Blueprint.

Did you not read the category name above?

1 Like

Can you please stop reviving 2-3 year old threads with insults to Epic and Epic related communities.

UDK is old, you’re lucky it’s here at all - enough with your attitude.

7s0xdy-2262071752

1 Like

Can you stop defending people spamming our only safe space with completely unrelated content and muddling our ability to properly find UE3 and UDK content?

Yes, I (and many others here) are aware that UDK is old. Still does not justify asshats disrespecting us with this trending crap so often. I am getting tired of having to browse through a series of UE5 beginner help threads (usually from Chinese users) just before finally finding any actual UDK content. Its not fair having to go through all that, yet YOU wanna call me a “jackass” with your scummy little meme?!? LOL! Two can play that game.

Don’t worry! I won’t respond to any more of the spam threads and just report them for Off-Topic instead. The key reason I did so at all is because:

  1. Evil Epic usually never listens to reason anymore (no matter how hard we try to rationalize with them), so I’d rather just nudge them on why the thread is off-topic and even help them move it there in case to the correct thread.
  2. I am actually posting the correct categories to help these idiots just move them over there instead manually. They’re not just some random comments.

anyone-ever-tell-you-you%E2%80%99re-an-■■■■■■■-vincent-anderson
EDIT: Also, until Epic Games brings back our veteran history data they ‘apparently’ hidden (if not deleted) from us (the UDK forums) and let us archive it manually ourselves, I’m not changing my attitude of ire against them or the ‘Unreal’ Engine 5 community. They are a terrible and evil company, just only leaving us with very meager land left after ravaging all of the rest. Like some ruthless tyrannical warlord…

You can think about that next time you wanna toss the salad for them.

1 Like