Browse Source

Merge pull request #3484 from ah0y/patch-2

FPS Tutorial Part 5 typo fix
Max Hilbrunner 5 years ago
parent
commit
f7ca54c021
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/3d/fps_tutorial/part_five.rst

+ 1 - 1
tutorials/3d/fps_tutorial/part_five.rst

@@ -475,7 +475,7 @@ With that done, all we need to do is add some code to ``process_input``:
     # ----------------------------------
     # Grabbing and throwing objects
 
-    if Input.is_action_just_pressed("fire") and current_weapon_name == "UNARMED":
+    if Input.is_action_just_pressed("fire_grenade") and current_weapon_name == "UNARMED":
         if grabbed_object == null:
             var state = get_world().direct_space_state