Multiplayer🔗
Hérite: Node
This class defines the multiplayer game type.
Propriétés🔗
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Méthodes🔗
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 |
Signaux🔗
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.
Descriptions de propriété🔗
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).
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.
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!
Descriptions de méthode🔗
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!