Table of Contents

Class PlayerInteractedEvent

Namespace
WorldMachineLoader.API.Events
Assembly
WML.API.dll

Event that is triggered when the player interacts with an entity (interactable object).

public class PlayerInteractedEvent
Inheritance
PlayerInteractedEvent
Inherited Members

Constructors

PlayerInteractedEvent(int, string)

Initializes a new instance of the PlayerInteractedEvent class.

public PlayerInteractedEvent(int entityID, string entityName)

Parameters

entityID int

The ID of an entity.

entityName string

The name of an entity.

Properties

EntityID

The ID on an entity.

public int EntityID { get; }

Property Value

int

EntityName

The name of an entity.

public string EntityName { get; }

Property Value

string