FetchEntityMaterial()

Syntax

Result = FetchEntityMaterial(#Entity, #Material [, SubEntity])
Description
Fetch the material associated to the specified #Entity with SetEntityMaterial().

Parameters

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

Return value

Returns nonzero on success and zero on failure.

Supported OS

All

<- EntityZ() - Entity Index - FreeEntity() ->