Anvil
Anvil.API.Events.OnObjectUse Class Reference

Called when a creature is about to use an object. More...

+ Inheritance diagram for Anvil.API.Events.OnObjectUse:
+ Collaboration diagram for Anvil.API.Events.OnObjectUse:

Classes

class  Factory
 

Properties

NwGameObject Object = null! [get]
 The object that is being used. More...
 
bool PreventObjectUse [get, set]
 Gets or sets if usage of the object should be prevented. More...
 
NwCreature UsedBy = null! [get]
 The creature using the object. More...
 
- Properties inherited from Anvil.API.Events.IEvent
NwObjectContext [get]
 

Detailed Description

Called when a creature is about to use an object.

Property Documentation

◆ Object

NwGameObject Anvil.API.Events.OnObjectUse.Object = null!
get

The object that is being used.

◆ PreventObjectUse

bool Anvil.API.Events.OnObjectUse.PreventObjectUse
getset

Gets or sets if usage of the object should be prevented.

◆ UsedBy

NwCreature Anvil.API.Events.OnObjectUse.UsedBy = null!
get

The creature using the object.


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