WoW:API CameraOrSelectOrMoveStart: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m ({{wowapi}})
m (Grammar)
Line 13: Line 13:


== Details ==
== Details ==
: This function is called when left clicking in the 3-D world. Most usefull it will select a target for a pending spell cast.
: This function is called when left-clicking in the 3-D world. It is most useful for selecting a target for a pending spell cast.


: Calling this function clears the "mouseover" unit.
: Calling this function clears the "mouseover" unit.


: If you hook this function be sure to grab UnitName("mouseover") or target the "mouseover" unit because once the original function is called, the "mouseover" will not have a value.
: If you hook this function, be sure to grab <tt>UnitName("mouseover")</tt> or target the "mouseover" unit because once the original function is called, the "mouseover" will not have a value.


: When used alone, puts you into a "mouselook" mode until [[API CameraOrSelectOrMoveStop|CameraOrSelectOrMoveStop]] is called.
: When used alone, puts you into a "mouselook" mode until [[API CameraOrSelectOrMoveStop|CameraOrSelectOrMoveStop]] is called.

Revision as of 14:58, 16 October 2006

WoW API < CameraOrSelectOrMoveStart

Begin "Left click" in the 3D world.

CameraOrSelectOrMoveStart()

Parameters

Arguments

()

Returns

nil


Details

This function is called when left-clicking in the 3-D world. It is most useful for selecting a target for a pending spell cast.
Calling this function clears the "mouseover" unit.
If you hook this function, be sure to grab UnitName("mouseover") or target the "mouseover" unit because once the original function is called, the "mouseover" will not have a value.
When used alone, puts you into a "mouselook" mode until CameraOrSelectOrMoveStop is called.
IMPORTANT: The normal restrictions regarding hardware event initiations still apply to anything this function might do.