Ends action initiated by
TurnOrActionStart. After calling this function (i.e. releasing the right mouse button), character steering stops and normal cursor movement resumes. If the cursor has not moved significantly since calling
TurnOrActionStart() (i.e. pressing the right mouse button), results vary by context:
if the cursor is over a nearby unit, interacts with (or attacks) that unit, making it the player's target.
if the cursor is over a nearby interactable world object (e.g. mailbox, treasure chest, or quest object), interacts with (or uses) that object.
if the cursor is over a faraway unit or world object and the "Click-to-Move" option is enabled (i.e. the "autointeract" CVar is "1"), attempts to move the player character to the unit/object and interact with it once nearby.
if the cursor is over a faraway world object and the "Click-to-Move" option is disabled, fires a
UI_ERROR_MESSAGEevent indicating the player is too far away to interact with the object.
otherwise, does nothing.
Used by the
TURNORACTION binding (not customizable in the default UI), which is bound to the right mouse button by default.
See also Movement functions.