Resource doesnt get accepted

Godot Version

Godot 4.2.2-stable

Question

Im having a weird issue where my own resourcetype doesnt get recognized:
grafik
this code prints the following:
grafik
So what its saying is that right_hand_item is not of Type WeaponResource but its the same as UNARMED_WEAPON, which results in an error when i try to access properties of the WeaponResource. Can someone explain whats going on?

Apparently the problem is, when you preload a custom-resource it gets imported as a Resource and not as the custom type

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.