Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision |
| crpl:docs:showmessage [2013/04/21 19:25] – created thepenguin | crpl:docs:showmessage [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
|---|
| ~~DISCUSSION~~ | |
| <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] | <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#screen_commands|Screen Commands]] |
| ===== GetUnitsInRange ===== | ===== ShowMessage ===== |
| |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ |
| |Coordinates and range|Number of units in range |''i1 i2 f1 -- [l1 l2...]i3 ''| | |Message and Coordinates||''n1 i1 i2 --''| |
| |
| |
| === Description === | === Description === |
| Returns a list of unit UID's. Returns all built player units that are landed and within range. A list is returned. A list consists of some number of unit uids, with the number of items in the list being the item on the top of the stack. | Displays a message in the User Interface at screen pixel coordinates (i1,i2) (upper left as origin). The message will disappear next frame so you'll have to call it every frame. Limit one message or message dismissible at a time. |
| === Examples === | === Examples === |
| <code> | <code> |
| CurrentCoords 15 GetUnitsInRange | "Hi" 200 50 ShowMessage |
| 0 do | |
| ->unit | |
| <-unit trace | |
| loop | |
| </code> | </code> |
| | |
| | <code> |
| | TRUE OperateWhilePaused |
| | #Put a message right next to the mouse |
| | "I am under the mouse" GetMouseScreenPixelPosition ScreenHeight swap sub ShowMessage |
| | </code> |
| | |