GodotMattohaLobbySystem 0.2.4
Loading...
Searching...
No Matches
Mattoha.Nodes.MattohaSpawner Class Reference

Public Member Functions

override void _Ready ()
 
override void _ExitTree ()
 

Properties

bool AutoSpawn = true [get, set]
 when true, will spawn node for other players on _ready().
 
bool AutoDespawn = true [get, set]
 when true, will despawn node for others when queue_free().
 
bool SpawnForTeamOnly = false [get, set]
 when true, spawning the node will be only for team members.
 
bool HandleByServer = false [get, set]
 when true, the spawning and despawning will be handled by server, and nodes authority will be the server too.
 
Array< string > AdditionalProps = new() [get, set]
 A properties list that should be replicated for other players during spawning, eg: "velocity", "motion_mode" or "Child1/Child2/Sprite2D:self_modulate" for nested node and "Sprite2D:scale" for direct child node.