Skip to content

CreateNetPlayer

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

Blitz3DBlitzPlusBlitzBasic

CreateNetPlayer

CreateNetPlayer:Int32 name:String
Parameter Mode Type Default Description
name In String required The name of the player.

Returns: A player number, or 0 when there is no game.

Description

Creates a player that belongs to this program and tells the other programs about it, who see it as a message of type 100. Players are what messages are sent from and to.

Examples

If HostNetGame("my game") = 2
	me = CreateNetPlayer("Alice")
	Print NetPlayerName$(me)
EndIf

Related Commands

DeleteNetPlayer, HostNetGame, JoinNetGame, NetMsgData, NetMsgFrom, NetMsgTo, NetPlayerLocal, NetPlayerName

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally