Jump to content
Sign in to follow this  
Spyler.X

doubt when detecting interactions

Recommended Posts

Hello

I am trying to establish an interaction in an object without logic.

I have put the interaction in the entity without any difficulty. I have tried everything that has occurred to me but I can not find a way to detect the interaction of the object.

Is there any way to do this that escapes me?

Share this post


Link to post
Share on other sites

There are two ways how to get custom interaction.

  • Use event ON INTERACT, but it has to be in the script of entity which has the event (assign it trough SET ENTITY INTERACTION )
  • Create listener, set target to entity with custom interaction, set event to CUSTOM INTERACTION

NOTE: Stackable items cannot have script by default, but you can select UNIQUE AND NOT SEPARABLE in object properties to enable to have one.

Example:

image.png

NOTE: ID field is not important at the moment, but in the future we would like to have more possible interaction on a object.

Share this post


Link to post
Share on other sites

Oh, it's true that I completely forget about the events listener.
thank you very much Rudy.cz

I'll have to stop doing logic when it's time to eat.xD

  • Haha 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×