GetDialogueTarget - Actor

From the CreationKit Wiki
Revision as of 21:08, 9 February 2013 by imported>Zartar (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Obtains the actor this actor is currently in dialogue with.

Syntax

Actor Function GetDialogueTarget() native

Parameters

None.

Return Value

The actor this actor is currently in dialogue with (if any).

Examples

; Print a message if Bob is in dialogue with the player
if (Bob.GetDialogueTarget() == Game.GetPlayer())
  Debug.Trace("Bob is in dialogue with the player!")
endIf

Notes

Using this function on the player always returns none. To work around this, see the discussion page.

See Also