]> Untitled Git - william-skin.git/blobdiff - test/test.gd
* Added face test animation
[william-skin.git] / test / test.gd
index 9780536e5fd94b2bfa332b609be1a39b77689956..71e4a2f7296614cbaf465d29ffbe4ce2e6d48abb 100644 (file)
@@ -12,3 +12,10 @@ func _input(event: InputEvent) -> void:
                        get_tree().quit()
                else:
                        Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
+
+
+func _on_player_camera_lockon() -> void:
+       # Pass everything that's part of the lockon group to the player
+       # within a certain radius
+       var arr := get_tree().get_nodes_in_group("player-lockon")
+       player.set_camera_lockon(arr)