This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| crpl:docs:setimageposition [2013/01/14 19:04] – created chani | crpl:docs:setimageposition [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | TODO | + | |
| + | <- [[crpl: | ||
| + | ===== SetImagePosition | ||
| + | |||
| + | ^Arguments^Result^Notation^ | ||
| + | |A unit UID, image slot, X, Y, Z coordinates| |'' | ||
| + | |||
| + | |||
| + | === Description === | ||
| + | Sets the coordinates (in floating point pixel space) of the image. | ||
| + | 0,0,0 is the exact center of the unit. Negative Z values are closer to the camera. | ||
| + | |||
| + | For more information on how the Z value works, as well as a list of some of the layers the game uses to render items, see [[crpl: | ||
| + | === Examples === | ||
| + | < | ||
| + | # (to the right and above the center of the unit). | ||
| + | # Move the image slightly closer to the camera | ||
| + | # (-0.01 on the z axis) so it appears in front of the | ||
| + | # main image. | ||
| + | Self " | ||
| + | </ | ||