multiplayer pretty much works now i think
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
|
||||
[node name="Rocket" instance=ExtResource("1_fnn4i")]
|
||||
script = ExtResource("2_86up0")
|
||||
acceleration = 40.0
|
||||
max_speed = 14.0
|
||||
|
||||
[node name="Sprite3D" parent="." index="1"]
|
||||
pixel_size = 0.013
|
||||
|
@@ -66,6 +66,7 @@ func networked_spawn_rocket(target_node_path, peer_id):
|
||||
projectile.position = global_position
|
||||
projectile.damage = damage
|
||||
projectile.target = target
|
||||
projectile.owner_id = peer_id
|
||||
projectile.name = str(peer_id) + str(projectile_id)
|
||||
get_tree().root.add_child(projectile)
|
||||
projectile.apply_central_impulse(Vector3.UP * 3.0)
|
||||
|
Reference in New Issue
Block a user