class_name EnemyController extends CharacterController @export var character: Character var move: Vector2 func _input(_event): move = Input.get_vector("move_left", "move_right", "move_forward", "move_backward") character.direction = (Global.camera.transform.basis * Vector3(move.x, 0, move.y)).normalized() if Input.is_action_pressed("jump"): character.jump() if Input.is_action_pressed("attack"): print("Attack") if Input.is_action_pressed("aim"): print("Aim")