Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser Error: Cannot infer the type of "next_location" variable because the value doesn't have a set type. #34

Closed
brandbrilliance opened this issue Dec 2, 2023 · 2 comments

Comments

@brandbrilliance
Copy link

This error occurs on the latest download from the package on MacOS.

Anyone know how do you fix this type error?

Line 39:Cannot infer the type of "next_location" variable because the value doesn't have a set type.
Line 42:Cannot infer the type of "direction" variable because the value doesn't have a set type.

39		var next_location := _navigation_agent.get_next_location() // *** RED
		
		if not _navigation_agent.is_target_reached():
42			var direction := (next_location - global_position) // *** RED
			direction.y = 0
			direction = direction.normalized()
@brandbrilliance
Copy link
Author

Duplicate of #23

@GigglingGalaxy
Copy link

location -> position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants