Jump to content

Recommended Posts

I'm trying to listen to the event that triggers when you inspect an item, entity or object in the world.

I know Listen for event already exists

inst:ListenForEvent(event, callback)

However I can not find a list of accessable events.

What I'm trying to do is just get the name of the item, entity or object the player is inspecting.

Does anyone have any insight on this?

Pretty sure there is no event for inspecting things, so your best option is to hook the inspectable component and create your own.

is a good tutorial on how to hook things, combined with a simple addcomponentpostinit for the inspectable component and you should be able to figure out the rest.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...