Table of Contents

Method ToNwPlayer

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ToNwPlayer(uint, PlayerSearch)

Converts the specified object ID value into a managed player object.

public static NwPlayer? ToNwPlayer(this uint objectId, PlayerSearch playerSearch = PlayerSearch.All)

Parameters

objectId uint

The object ID to convert.

playerSearch PlayerSearch

Methods to use to resolve the player.

Returns

NwPlayer

The associated player for this object, otherwise null.