Hi. Is there a way of knowing if a client is a listen server, just as Switch Has Authority checks authority?
For example, A node like Switch Has Authority but with outputs: Listen or Remote?
Hi. Is there a way of knowing if a client is a listen server, just as Switch Has Authority checks authority?
For example, A node like Switch Has Authority but with outputs: Listen or Remote?
Use IsServer node.
Have not tested But marking as Answered as this should work :)! Thank you!
Answered by Distul! See above Post! Thank you
IsServer is indicating that game is not Client, so IsServer would be true even for Standalone game.
This is what I’m using. If you never have dedicated servers, you could just check if server
Is locally controller node, then if is run from a pawn that is server will return true if not false.
Great answer.
i could not find those nodes in cpp. and IsServer is deprecated but no notice of what to use instead.
i’ve been using IsNetMode(NM_Client) there’s also NM_Standalone and NM_Server