Wizards of Lua

The Art of Spell Crafting


PlayerEntityInteractEvent - When a Player Right-Clicks on an Entity

The PlayerEntityInteractEvent class is fired when a player right-clicks somewhere an entity

The PlayerEntityInteractEvent class is a subtype of the PlayerInteractEvent class and inherits all its properties and functions.

Here is an overview of the PlayerEntityInteractEvent properties:

Property Type read / write
target Entity r

Properties

Below you find short descriptions about each of the properties and some examples about how to use them in your spells.


target : Entity

The target entity.