X-Git-Url: http://git.purplebirdman.com/william-skin.git/blobdiff_plain/991a7b1300e33ebdb52734e566479263acff8ef3..06dfe9d415f6b12e04453f9c4ebb33e8c9380f0c:/test/test.gd?ds=inline 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)