material
This pointer is used to set a specific material for an entity
or decal.
Type:
MATERIAL*
Remarks:
-
If no material is assigned to an entity, a predefined material is used depending on the entity type.
-
If no material is assigned to a decal, the decal is rendered with the material of the entity or block it's attached to.
Example:
MATERIAL* mtl_smaragd =
{
ambient_blue = 100;
ambient_green = 255;
ambient_red = 100;
diffuse_blue = 0;
diffuse_green = 100;
diffuse_red = 0;
specular_blue = 255;
specular_green = 255;
specular_red = 255;
power = 10;
}
action smaragd()
{
...
my.material = mtl_smaragd;
...
}
See also:
MATERIAL, ent_decal
► latest
version online