UI_click_on_item
mixed[4] UI_click_on_item()
Displays the targeting square and waits for the player to click on something.
Return
An array with 4 elements. The first element is the object clicked, or zero if the player clicked a tile; the remaining 3 elements make up the (x, y, z) location of the object or tile clicked.
If used after a 'set_intercept_item' intrinsic call, the preassigned object or tile is returned in the same manner as if the player had clicked it.
This intrinsic has a special case: when event == WEAPON (weapon hit), and if item is a valid object, the return will be overridden to be it (although a 'set_intercept_item' intrinsic call takes precedence over this special case).