Skip to content

Node Class

Paulo Rafael edited this page Jan 21, 2024 · 8 revisions

Node

Node class is a class made for storing NodeDefinition data adapted for Lua,
this page shows accessable keys and methods in this class.

Memebers

  • TypeId: The type of this node.
  • Flags: The set of flags of special settings.
  • WireCollection or Wires: A CollectionOfWires containing wire collection data.

Methods

Set a property's value of various property types. Can be mostly used by experts if they plan into actually do any new stuff.

  • Float property: void SetPropertyValue(int id, float value)
  • Integer property: void SetPropertyValue(int id, int value)
  • Vector3 property: void SetPropertyValue(int id, float x, float y, float z)
  • Vector4 property: void SetPropertyValue(int id, float x, float y, float z, float w)
  • Text file property: void SetPropertyValue(int id, short index, short value)
  • Actor property: void SetPropertyValue(int id, Actor actor)

Color

  • Change color: SetColor(byte r, byte g, byte b, [ byte a = 255)

Clone this wiki locally