WoW:API CameraOrSelectOrMoveStart: Difference between revisions

m
Reformatted.
No edit summary
m (Reformatted.)
Line 1: Line 1:
This function is called when left clicking in the 3-D world, specifically when a spell is awaiting a target.  If you hook this function and grab UnitName("mouseover") or save the target "mouseover" you will be able to know which unit was clicked on.  Once the original function is called, the "mouseover" will not have a value.
<center>'''CameraOrSelectOrMoveStart'''</center>


Begin "Left click" in the 3D world.


Also, 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.
  CameraOrSelectOrMoveStart()
== Parameters ==
=== Arguments ===
:()


Example:
=== Returns ===
:<i>nil</i>


/script CameraOrSelectOrMoveStart();


== 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.


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 UnitName("mouseover") 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.


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.
----
 
__NOTOC__
[[Category:API Functions|CameraOrSelectOrMoveStart]]
{{Template:WoW API}}
[[Category:API Action Functions|CameraOrSelectOrMoveStart]]
[[Category:API Action Functions|CameraOrSelectOrMoveStart]]
[[Category:API Camera Functions|CameraOrSelectOrMoveStart]]
[[Category:API Camera Functions|CameraOrSelectOrMoveStart]]
[[Category:API Movement Functions|CameraOrSelectOrMoveStart]]
[[Category:API Movement Functions|CameraOrSelectOrMoveStart]]
Anonymous user