get_world_net_mode
Read the Unreal Editor world's network mode as a string, with net mode code and server/client flags, to verify multiplayer role before scripting. Skips PIE worlds, so usually reports Standalone.
Instructions
Read the net mode of the editor world as a string ("Standalone", "ListenServer", "Client" or "DedicatedServer") with net_mode_code, is_server and is_client. Read-only, no parameters; PIE worlds are not read, so this normally reports "Standalone".
Returns: { net_mode: string, net_mode_code: int, is_server: bool, is_client: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||