<- CRPL reference <- Creeper Commands

SetCreeperColors

ArgumentsResultNotation
2 pair of 3-value RGB (Red, Green, Blue) colors settingsnull i1 i2 i3 i4 i5 i6 –

Description

sets the RGB color values for Creeper and Anti-Creeper, respectively.

A map can change the colors at the start. Or it could change them during game play based on conditions. There is a performance hit when changing colors, but so long as the color isn't changed all of the time it's no big deal.

Note: The RGB values are integers between 1 and 255. To update color values obtained from the GetCreeperColors command, multiply the respective values by 255 and convert to integer.

Note The settings dialog will always apply the creeper colors whenever you hit apply on the video settings tab. So if a map changes the colors, the player can change them back to whatever by just hitting Apply in the settings again. If a map only sets the colors when it is first started, then the colors for that map would essentially be overridden by the player at that point.

Examples

Warp notation

 
SetCreeperColors(<-creeperR <-creeperG <-creeperB <-acR <-acG <-acB)