X-Git-Url: http://git.purplebirdman.com/william-skin.git/blobdiff_plain/991a7b1300e33ebdb52734e566479263acff8ef3..3e74277bb1d2ad3f5ccdc26c690a0f6e37ffcd25:/test/test.gd diff --git a/test/test.gd b/test/test.gd index 9780536..71e4a2f 100644 --- a/test/test.gd +++ b/test/test.gd @@ -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)