Multiplayerπ
Inherits: Node
This class defines the multiplayer game type.
Propertiesπ
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methodenπ
void |
|
void |
_ready() |
_on_player_spawn(data: Dictionary) |
|
_on_map_spawn(data: Variant = null) |
|
void |
_unhandled_input(event: InputEvent) |
void |
start_server(port: int, _p_mode: int = 0, map_index: int = 0, _username: String = "Mercury") |
void |
join_server(host: String, port: int, username: String) |
void |
|
void |
add_player(peer_id: int, username: String) |
void |
_on_connected_to_server(username: String) |
void |
|
void |
_on_player_killed(victim: Player, _killer: int) |
void |
_join_match(username: String) |
void |
|
void |
Signalsπ
connection_failed() π
There is currently no description for this signal. Please help us by contributing one!
Enumerationsπ
enum Mode: π
Mode FREE_FOR_ALL = 0
Free-for-all mode where players compete individually.
Mode RABBIT = 1
Rabbit mode where players chase and protect a designated "rabbit" player.
Mode CAPTURE_THE_FLAG = 2
Capture the flag mode where teams compete to capture each other's flags.
Mode ARENA = 3
Arena mode where players engage in team deathmatch battles.
Mode BALL = 4
Ball mode where teams aim to control the ball and score goals.
Eigenschaftsbeschreibungenπ
The Match manager.
The Teams manager.
MotionService motion_service π
There is currently no description for this property. Please help us by contributing one!
Scoreboard scoreboard π
The scoreboard to keep track of scores.
float VICTIM_RESPAWN_TIME = 3.0 π
The time it takes for a player to respawn when killed, secconds (s).
int MATCH_DURATION = 1200 π
The total duration of a match, in secconds (s).
int WARMUP_START_DURATION = 25 π
The total duration of the warmup phase of a match.
PackedScene _PLAYER π
There is currently no description for this property. Please help us by contributing one!
PackedScene _FLAG π
There is currently no description for this property. Please help us by contributing one!
The spawn root for Player nodes.
Node objectives = <unknown> π
The spawn root for Flag nodes.
MultiplayerSpawner player_spawner = <unknown> π
There is currently no description for this property. Please help us by contributing one!
MultiplayerSpawner map_spawner = <unknown> π
There is currently no description for this property. Please help us by contributing one!
MultiplayerSpawner objectives_spawner = <unknown> π
There is currently no description for this property. Please help us by contributing one!
Methodenbeschreibungenπ
void _enter_tree() π
There is currently no description for this method. Please help us by contributing one!
void _ready() π
There is currently no description for this method. Please help us by contributing one!
Player _on_player_spawn(data: Dictionary) π
There is currently no description for this method. Please help us by contributing one!
Map _on_map_spawn(data: Variant = null) π
There is currently no description for this method. Please help us by contributing one!
void _unhandled_input(event: InputEvent) π
There is currently no description for this method. Please help us by contributing one!
There is currently no description for this method. Please help us by contributing one!
void start_server(port: int, _p_mode: int = 0, map_index: int = 0, _username: String = "Mercury") π
This method starts a server.
void join_server(host: String, port: int, username: String) π
There is currently no description for this method. Please help us by contributing one!
void _on_server_disconnected() π
There is currently no description for this method. Please help us by contributing one!
void add_player(peer_id: int, username: String) π
There is currently no description for this method. Please help us by contributing one!
void _on_connected_to_server(username: String) π
There is currently no description for this method. Please help us by contributing one!
void _on_connection_failed() π
There is currently no description for this method. Please help us by contributing one!
void _on_player_killed(victim: Player, _killer: int) π
There is currently no description for this method. Please help us by contributing one!
void _join_match(username: String) π
There is currently no description for this method. Please help us by contributing one!
void _leave_match() π
There is currently no description for this method. Please help us by contributing one!
void _exit_tree() π
There is currently no description for this method. Please help us by contributing one!