I can't figure out how to check if a player is holding something

I’m trying to check if a player is holding an object in order to make sure the collision effect can’t be triggered by any object entering the trigger, only if the player is holding it, and it’s the right object.

This is my current attempt, and suffice to say, it doesn’t work, and I have no idea why.

As you can see, there are some ToStrings around from my attempt to troubleshoot, not a single one actually gave a message when connected to a Log node.
In my head, this should work, if I have any understanding of Udon (which I probably do not)
Is there an already established way to do this? Is there a better way to do this?

1 Like

I don’t write my udon in graph, but you should be able to check if the player is the owner of the object. They will automatically gain ownership when they pickup the object, and if you can check if the object is picked up you can also cross match if the user is the owner.

1 Like

Worked like a charm
Posting an image of the code for reference and ease of copy: