Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Add On Interact:

Open BearBuilds opened this issue 1 year ago • 5 comments

Suggestion

Add a event on interact:

Why?

Instead of doing on right-click on chest:, on right-click on door, on right-click on button etc. You can do on interact: like how would guard has a flag for interact to cover all interaction types.

Other

No response

Agreement

  • [X] I have read the guidelines above and affirm I am following them with this suggestion.

BearBuilds avatar Apr 23 '24 01:04 BearBuilds

so basically a less useful click event? I dont see why they would need to make a whole other event for interacting with interactable objects

1, I would imagine that the interactions would be somewhat hard coded, as an on interact with [] is literally just on click on [] 2, and if they were hard coded, some people wouldn't want the event to listen to some of these things, so just using the click event.

Asleeepp avatar Apr 23 '24 01:04 Asleeepp

Skript’s on left/right click is based on PlayerInteractEvent and its inheritors. The user here is proposing a more ambiguous event instead.

NotSoDelayed avatar Apr 23 '24 01:04 NotSoDelayed

This seems more like a quality of life feature. Sure you could list all the blocks but having this would be a bit easier and quicker.

vixtordev avatar May 01 '24 17:05 vixtordev

This seems more like a quality of life feature. Sure you could list all the blocks but having this would be a bit easier and quicker.

This is my exact thought instead of listing all interactable it would just be on interact.

BearBuilds avatar May 01 '24 17:05 BearBuilds

But all blocks can be interacted with. They may not do anything in response, but you can click on them. I don't really see the use in such an event, other than cancelling it, which is the same as:

on click:
    event-block is set
    cancel event

sovdeeth avatar May 01 '24 18:05 sovdeeth