Slow Raycast Bug for my attribute
I am creating a secure chest system, but the lock option requires that the player has a specific item, however the items are shareable, I could make a kill system in the as an entity however, I can not check if the item is shared by shift click from a chest, so I thought of using a raycast that detects if there is a chest, if yes then lower block_interaction_range to 0. But there are certain bugs because my raycast is not fast enough or other. Do you have a solution?
Continue to help post