Add multiplayer damage system and ragdolls
This commit is contained in:
@ -19,9 +19,9 @@ func shoot() -> Error:
|
||||
return ERR_CANT_OPEN
|
||||
|
||||
var node: MeshInstance3D = scene.instantiate()
|
||||
node.init(bullet_start_node.global_position, bullet_end_node.global_position)
|
||||
var root := get_tree().get_root()
|
||||
root.add_child(node)
|
||||
node.init(bullet_start_node.position, bullet_end_node.position)
|
||||
#var root := get_tree().get_root()
|
||||
bullet_start_node.add_child(node)
|
||||
return OK
|
||||
else:
|
||||
push_warning("Couldn't generate a bullet trace, no distance node found")
|
||||
|
Reference in New Issue
Block a user