Anvil
Anvil.API.Events.ModuleEvents.OnPlayerTarget Class Reference

Triggered when a NwPlayer that has targeted something. More...

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

Properties

bool IsCancelled [get]
 Gets if the player cancelled target selection. More...
 
NwPlayer Player = NWScript.GetLastPlayerToSelectTarget().ToNwPlayer()! [get]
 Gets the NwPlayer that has targeted something. More...
 
NwObjectTargetObject = NWScript.GetTargetingModeSelectedObject().ToNwObject()! [get]
 Gets the NwObject that has been targeted by Player, otherwise the area if a position was selected. More...
 
Vector3 TargetPosition = NWScript.GetTargetingModeSelectedPosition() [get]
 Gets the position targeted by the NwPlayer. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

Detailed Description

Triggered when a NwPlayer that has targeted something.

Property Documentation

◆ IsCancelled

bool Anvil.API.Events.ModuleEvents.OnPlayerTarget.IsCancelled
get

Gets if the player cancelled target selection.

◆ Player

NwPlayer Anvil.API.Events.ModuleEvents.OnPlayerTarget.Player = NWScript.GetLastPlayerToSelectTarget().ToNwPlayer()!
get

Gets the NwPlayer that has targeted something.

◆ TargetObject

NwObject? Anvil.API.Events.ModuleEvents.OnPlayerTarget.TargetObject = NWScript.GetTargetingModeSelectedObject().ToNwObject()!
get

Gets the NwObject that has been targeted by Player, otherwise the area if a position was selected.

◆ TargetPosition

Vector3 Anvil.API.Events.ModuleEvents.OnPlayerTarget.TargetPosition = NWScript.GetTargetingModeSelectedPosition()
get

Gets the position targeted by the NwPlayer.


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