WoW:API CameraOrSelectOrMoveStart: Difference between revisions

m
Move page script moved page API CameraOrSelectOrMoveStart to WoW:API CameraOrSelectOrMoveStart without leaving a redirect
(Simulates depressing left mouse button)
 
m (Move page script moved page API CameraOrSelectOrMoveStart to WoW:API CameraOrSelectOrMoveStart without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Simulates depressing the left mouse button. When used alone, puts you into a "mouselook" mode until you press and release the actual left mouse button, or use the CameraOrSelectOrMoveStop command.
{{wowapi}}
{{protectedapi|1.10|}}
Begin "Left click" in the 3D world.


Example:
CameraOrSelectOrMoveStart()
== Parameters ==
=== Arguments ===
:()


/script CameraOrSelectOrMoveStart();
=== 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.


Used in conjunction with the CameraOrSelectOrMoveStop command, simulates a left mouse click.
: Calling this function clears the "mouseover" unit.


Example:
: 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.


/script CameraOrSelectOrMoveStart();
: When used alone, puts you into a "mouselook" mode until [[API CameraOrSelectOrMoveStop|CameraOrSelectOrMoveStop]] is called.


/script CameraOrSelectOrMoveStop();
: IMPORTANT: The normal restrictions regarding hardware event initiations still apply to anything this function might do.
 
__NOTOC__
Result is context sensitive, as the name of the command itself implies; is not a "true" left mouseclick, as it will not activate UI buttons.
Anonymous user