WIP: Some updates
This commit is contained in:
@ -23,6 +23,12 @@ func _ready() -> void:
|
||||
shared_node.set_collision_mask_value(3, true)
|
||||
map_controller = find_parent("Map")
|
||||
_load_weapon()
|
||||
var model_scene: PackedScene = ResourceLoader.load("res://scenes/characters/y-bot/character.tscn")
|
||||
var model: CharacterWrapper = model_scene.instantiate()
|
||||
model.global_position = shared_node.global_position
|
||||
model.set_owner_placeholder(shared_node)
|
||||
shared_node.add_child(model)
|
||||
|
||||
# Load the default weapon and set the current attack properties
|
||||
|
||||
func _load_weapon() -> void:
|
||||
|
@ -24,7 +24,7 @@ properties/4/replication_mode = 2
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_8la7e"]
|
||||
properties/0/path = NodePath("SharedNode:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 2
|
||||
properties/0/replication_mode = 0
|
||||
|
||||
[node name="ServerNode" type="Node3D"]
|
||||
script = ExtResource("1_bau14")
|
||||
@ -33,6 +33,7 @@ script = ExtResource("1_bau14")
|
||||
|
||||
[node name="Character" parent="SharedNode" instance=ExtResource("3_eykxo")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)
|
||||
visible = false
|
||||
|
||||
[node name="MainSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_2dhi2")
|
||||
|
Reference in New Issue
Block a user