Table of Contents

Method IsPlayerControlled

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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.

public static bool IsPlayerControlled(this NwObject? gameObject, out NwPlayer? player)

Parameters

gameObject NwObject
player NwPlayer

Returns

bool