Skip to content

HostNetGame

Narta Xaymar Dirks edited this page Nov 25, 2026 · 7 revisions

HostNetGame BlitzBasic

HostNetGame:Int32 game_name:String
Parameter Mode Type Default Description
game_name In String required The name of the game. Joining programs have to use the same name.

Returns: 2 when the game was started, 0 when it could not be, for example because the port is taken.

Description

Starts a game on this computer as its host and waits for other programs to join it.

Related Commands

CreateNetPlayer BlitzBasic, DeleteNetPlayer BlitzBasic, JoinNetGame BlitzBasic, NetMsgData BlitzBasic, NetMsgFrom BlitzBasic, NetMsgTo BlitzBasic, StartNetGame BlitzBasic, StopNetGame BlitzBasic

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally