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 image name i1 s1 s2 –

Description

Sets the unit image for the specified slot of the CRPL Core. 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”.

A single CRPL Core has a maximum limit of the number of images that can be used, which is set at 1024 images. However, you are only allowed to add 1023 images before functionality start to break. Adding a 1024th image will lock up your ability to add or remove further images from the core, so make sure not to reach this limit.

Examples

# Set the primary image for the current unit to whatever 
# image is loaded in "Custom0" 
Self "main" "Custom0" SetImage
crpl/docs/setimage.1537557014.txt.gz · Last modified: 2018/09/21 15:10 by Grabz