Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.6

Description

Description:

Redefines an attribute for a currently loaded biotope.

Changed values remain invisible, until they are committed using biotopeCommit (however, the new values are returned by getBiotope immediately).

Syntax

Syntax:setBiotope [component, attribute, value]
Parameters:
  • component: String - Component name (case-sensitive).
  • attribute: String - Attribute name (case-sensitive).
  • value: Number, String, Boolean or Array - New attribute value (the type of value passed depends on what the attribute used originally). Some attributes have maximum values defined. If the defined value exceeds this limit, then the limit value is used instead.
Return Value:Nothing

Examples

Examples:
setBiotope ["Snow", "amount", 2];
setBiotope ["Snow","road",[0,1,2,1.5,1.5]];

Additional Information

See also: getBiotope, biotopeCommit
Multiplayer:
Problems:

Notes