Fixed up a couple things, first steps towards a location manager

This commit is contained in:
2026-03-27 16:32:52 -07:00
parent 7ba95c5949
commit f9de58d9f7
9 changed files with 111 additions and 48 deletions

View File

@@ -19,10 +19,9 @@ func main(args: Array, context: Node) -> void:
if cam_id == -1:
context._print("Invalid camera ID or name: %s" % input_value)
return
var cam_name = Global.cameraHelper.getName(cam_id)
var newCam = cCamera.new(str(cam_id))
newCam._init(str(cam_id))
var new_camera: cCamera = Global.game.cameras[cam_id]
var cam_name = new_camera.name
context._print("Camera set to %s" % cam_name.capitalize())