User Tools

Site Tools


crpl:docs:setimage

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Image Commands

SetImage

ArgumentsResultNotation
A unit UID, image slot, and custom unit name i1 s1 s2 –

Description

Sets the unit image for the specified slot. Slot is an arbitrary name used to identify which image to set. The slot named “main” refers to the primary unit image (the one that can be set in the editor). The image name must refer to one of the image names that can be set on a unit. The combo box in the editor for setting the primary unit image contains a list of valid strings. To remove an image, use the image name “NONE”.

Examples

# Set the primary image for the current unit to whatever 
# image is loaded in "Custom0" 
Self "main" "Custom0" SetImage
crpl/docs/setimage.1360095703.txt.gz · Last modified: 2014/10/01 15:02 (external edit)