SetEntityMaterial()

Syntax

SetEntityMaterial(#Entity, MaterialID [, SubEntity])
Description
Assign a material to the specified #Entity. An entity can only have one material assigned at once.

Parameters

#Entity The entity to use.
#Material The new created material number.
SubEntity (optional) The sub-entity to set the material. First sub-entity index starts at 0 (representing the main entity).

Return value

None.

See Also

FetchEntityMaterial(), GetEntityAttribute(), SetEntityAttribute()

Supported OS

All

<- SetEntityCollisionFilter() - Entity Index