Table of Contents

Method TryEnterTargetMode

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

TryEnterTargetMode(Action<OnPlayerTarget>, TargetModeSettings?)

Attempts to get this player to enter cursor targeting mode, invoking the specified handler once the player selects something.
If the player is already in targeting mode, the existing handler will not be cleared.

public bool TryEnterTargetMode(Action<ModuleEvents.OnPlayerTarget> handler, TargetModeSettings? settings = null)

Parameters

handler Action<ModuleEvents.OnPlayerTarget>

The lamda/method to invoke once this player selects something.

settings TargetModeSettings

Display and behaviour options for the target mode.

Returns

bool

True if the player successfully entered target mode, otherwise false.