WoW:API CameraOrSelectOrMoveStart: Difference between revisions
mNo edit summary |
No edit summary |
||
| 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. | |||
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. | |||
Example: | Example: | ||
/script CameraOrSelectOrMoveStart(); | /script CameraOrSelectOrMoveStart(); | ||
Revision as of 13:23, 8 September 2005
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.
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.
Example:
/script CameraOrSelectOrMoveStart();
Used in conjunction with the CameraOrSelectOrMoveStop command, simulates a left mouse click.
Example:
/script CameraOrSelectOrMoveStart();
/script CameraOrSelectOrMoveStop();
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.