Table of Contents

Class ObjectExtensions

Namespace
Anvil.API
Assembly
NWN.Anvil.dll
public static class ObjectExtensions
Inheritance
ObjectExtensions
Inherited Members

Methods

IsLoginPlayerCharacter(NwObject?, out NwPlayer?)

Gets if this object is a player character/DM avatar.
If this object is not a NwCreature, this returns false.
If this creature is a NPC or familiar, regardless of possession, this will return false.

IsPlayerControlled(NwObject?, out NwPlayer?)

Gets if this object is a NwCreature currently being controlled by a player/DM.
If this creature is a possessed familiar or is DM possessed, this returns true.
If this object is not a NwCreature, this returns false.
If this creature is a player creature (the creature a played logged in with), but the player is possessing another creature, this returns false.
If no player is controlling this creature, this returns false.