FutureProg functions

setmaterial

Itemscomputer function, computer program, standard futureprog

Overload 1

setmaterial overload 1

Boolean setmaterial(Item item, Number material)
Available in
  • computer function
  • computer program
  • standard futureprog
This function sets the primary material of an item to the specified material. It returns true if this succeeds.
ParameterTypeDescription
item Item The item whose primary material you want to set
material Number The ID of the material that you want to set

Overload 2

setmaterial overload 2

Boolean setmaterial(Item item, Solid material)
Available in
  • computer function
  • computer program
  • standard futureprog
This function sets the primary material of an item to the specified material. It returns true if this succeeds.
ParameterTypeDescription
item Item The item whose primary material you want to set
material Solid The material you want to set

Overload 3

setmaterial overload 3

Boolean setmaterial(Item item, Text material)
Available in
  • computer function
  • computer program
  • standard futureprog
This function sets the primary material of an item to the specified material. It returns true if this succeeds.
ParameterTypeDescription
item Item The item whose primary material you want to set
material Text The name of the material that you want to set