Fixed some errors
This commit is contained in:
parent
87919ed890
commit
e6a47a4772
9 changed files with 32 additions and 32 deletions
|
|
@ -22,7 +22,7 @@ func fire() -> void:
|
|||
machine.animation_player.play(machine.animation_prefix + "shoot")
|
||||
|
||||
if is_multiplayer_authority():
|
||||
var molotov: RigidBody3D = molik.instantiate()
|
||||
var molotov: CharacterBody3D = molik.instantiate()
|
||||
Session.dynamic_objects_parent.add_child(molotov,true)
|
||||
molotov.global_transform = machine.player_camera.global_transform
|
||||
molotov.apply_impulse(-molotov.global_basis.z * 10)
|
||||
molotov.velocity = -molotov.global_basis.z * 100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue