Skip to content

HostNetGame

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

HostNetGame

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, DeleteNetPlayer, JoinNetGame, NetMsgData, NetMsgFrom, NetMsgTo, StartNetGame, StopNetGame

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally