SetMaterialColor (deprecated since 4.9.5.0 CE)
Category: Landscape/Material
Since engine version: 4.9.1.0 GWE
Description
Sets the colors of a material causing all occurences of this material in the landscape to be drawn using the new color.
Syntax
bool SetMaterialColor
(int iMat, int iR1, int iG1, int iB1, int iR2, int iG2, int iB2, int iR3, int iG3, int iB3);
Parameters
- iMat:
-
Index of the material for which you want to set the colors.
- iR1:
-
Red value (0-255) of the first material color.
- iG1:
-
Green value (0-255) of the first material color.
- iB1:
-
Blue value (0-255) of the first material color.
- iR2:
-
Red value (0-255) of the second material color.
- iG2:
-
Green value (0-255) of the second material color.
- iB2:
-
Blue value (0-255) of the second material color.
- iR3:
-
Red value (0-255) of the third material color.
- iG3:
-
Green value (0-255) of the third material color.
- iB3:
-
Blue value (0-255) of the third material color.
Remark
This function only works in 8-bit mode, so since CE it does not work anymore.
Example
SetMaterialColor(Material("Gold"));
Makes gold black.
Changelog
| Date |
Author |
Version |
Description |
| 24th December 2022 |
Funni |
4.9.5.0 CE |
Deprecated: 8Bit-DDraw was removed with the first version of Clonk Endeavour.
|
Sven2, November 2001
Funni, 24th December 2022