Anvil
Anvil.API.Events.ModuleEvents.OnPlayerTileAction Class Reference

Triggered when a player performs an action on an area tile. More...

+ Inheritance diagram for Anvil.API.Events.ModuleEvents.OnPlayerTileAction:
+ Collaboration diagram for Anvil.API.Events.ModuleEvents.OnPlayerTileAction:

Properties

int ActionId = NWScript.GetLastTileActionId() [get]
 Gets the action ID (surfacemat.2da) that was selected by the player. More...
 
NwPlayer Player = NWScript.GetLastPlayerToDoTileAction().ToNwPlayer()! [get]
 Gets the NwPlayer that performed a tile action. More...
 
Vector3 TargetPosition = NWScript.GetLastTileActionPosition() [get]
 Gets the position that was clicked. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

Detailed Description

Triggered when a player performs an action on an area tile.

Property Documentation

◆ ActionId

int Anvil.API.Events.ModuleEvents.OnPlayerTileAction.ActionId = NWScript.GetLastTileActionId()
get

Gets the action ID (surfacemat.2da) that was selected by the player.

◆ Player

NwPlayer Anvil.API.Events.ModuleEvents.OnPlayerTileAction.Player = NWScript.GetLastPlayerToDoTileAction().ToNwPlayer()!
get

Gets the NwPlayer that performed a tile action.

◆ TargetPosition

Vector3 Anvil.API.Events.ModuleEvents.OnPlayerTileAction.TargetPosition = NWScript.GetLastTileActionPosition()
get

Gets the position that was clicked.


The documentation for this class was generated from the following file: