Table of Contents

Method ToNwObjectSafe

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ToNwObjectSafe<T>(Guid)

Attempts to resolve a living active game object from the specified UUID.

public static T? ToNwObjectSafe<T>(this Guid objectId) where T : NwObject

Parameters

objectId Guid

The UUID of the object.

Returns

T

The game object with the given UUID and the specified type, otherwise returns null.

Type Parameters

T

The expected object type. If the object is not this type.