Very new to Godot and would appreciate some help solving an error.

Godot Version

4.6

Question

I'm currently following a 9 month old video on how to recreate TES: Oblivion locking picking mechanic (the best lockpicking mechanic from any game) and I've hit a snag. I feel like I copied the video 100% but I'm getting an error he isn't. I am at the part in the code where we are have added the code to keep the pin in place at the top of the lock when the input is hit on time.

image

This is the Error in question.

This is my code thus far on the Lockpick itself.

This is the code on the pin we are hitting.

This is the link to the video I am following,

I am at roughly 24:25 into the video, where he is explaining how we need to set the active pin, my error comes from when I hit the input at the correct time to lock the pin in place.

Any help would be great, thanks for your time.

You made a typo.

canlock vs canLock

3 Likes

Yup. In Godot if an error says Invalid access to property or key on a base object of type … it is basically saying that what you are using doesn’t exist in the database, this is almost always one of these issues. 1. A typo like it is here, you typed something wrong and so Godot doesn’t know what it’s supposed to be. 2. That property doesn’t exist in the object that the script is attached to. For example trying to use .velocity on an area3d would give this error because the .velocity property doesn’t exist for the area3d node. 3. You forgot to define something previously in the code or defined it in a different function. Hope this helps you debug these errors in the future.

1 Like