0 votes

Image of the code next to the error.
Link to the image of code and error

if(typeof(actions[0]) == TYPE_VECTOR3):

The typeof function seems to be returning a string instead of a number which keeps resulting in an error.

in Engine by (15 points)

1 Answer

0 votes
Best answer

The line was misreported. Look at the else, you wrote:

elif(typeof(actions[0] == TYPE_STRING)):

Which is indeed comparing a string with an integer.

That bug has been around for a while: https://github.com/godotengine/godot/issues/20820

by (27,902 points)
selected by

thank you. dumb mistake

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.