Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.15 KB

MPHOST.org

File metadata and controls

41 lines (36 loc) · 1.15 KB

Top | Up (Multiplayer) | < Previous (PAGE NAME) | Next (PAGE NAME) >

MPHOST

System variable. Contains the ID of the local multiplayer host system. -1 if multiplayer is not enabled.

The host system always has an ID of 0, but you should still use MPHOST just in case.

Examples

Checking if you are the multiplayer host:

MPSTART 2," "
IF MPHOST==MPLOCAL THEN PRINT "HOST"