Anvil
Anvil.API.Events.ModuleEvents.OnPlayerRest Class Reference

Triggered when NwPlayer presses the rest button and begins to rest, cancelled rest, or finished rest. More...

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

Properties

NwPlayer Player = NWScript.GetLastPCRested().ToNwPlayer()! [get]
 Gets the NwPlayer that triggered the event. More...
 
RestEventType RestEventType = (RestEventType)NWScript.GetLastRestEventType() [get]
 Gets the RestEventType that was triggered. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

Detailed Description

Triggered when NwPlayer presses the rest button and begins to rest, cancelled rest, or finished rest.

Property Documentation

◆ Player

NwPlayer Anvil.API.Events.ModuleEvents.OnPlayerRest.Player = NWScript.GetLastPCRested().ToNwPlayer()!
get

Gets the NwPlayer that triggered the event.

◆ RestEventType

RestEventType Anvil.API.Events.ModuleEvents.OnPlayerRest.RestEventType = (RestEventType)NWScript.GetLastRestEventType()
get

Gets the RestEventType that was triggered.


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