Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Right click

Joined
Feb 12, 2018
Messages
48
Is there any way to right-click visible GameObjects / Players / GroundItems ?

The click() function doesn't seem to have any parameters.

(sorry for the incorrect tag, this is just a question not a bug, i can't change it)
 
Joined
Jan 25, 2015
Messages
121
As Auxi said, use interact method:
Code:
InteractableEntity x = ....;

x.interact("some action from object");


Interact method also returns a boolean value, then you can use it in a if block to check if the interaction was properly:
Code:
InteractableEntity x = ....;

if (x.interact("any action")){
    //do something like
    //set mesage, camera move
    //and so on
}
 
Top