Modifiers

From C4 Engine Wiki

Jump to: navigation, search

A modifier is something that can be assigned to an instance node in order to change the appearance or properties of the world it references in some way. There are several modifiers built into the engine, and an application may define additional custom modifiers for its own use.

Modifiers are assigned to an instance node under the Modifiers tab in the Node Info window.

Standard Modifiers

Modifier

Description

Augment Instance

Loads another world alongside the instanced world. This can be useful for adding details to an object or adding physics to an object that is ordinarily immovable. The secondary world is instanced just like the originally instanced world, so data is shared among multiple instances of worlds loaded with this modifier.

  • The “Instanced world name” setting specifies the name of the world resource to be loaded.

Wake Controller

Searches through all top-level nodes in the instanced world and wakes all controllers that are found.

Sleep Controller

Searches through all top-level nodes in the instanced world and puts all controllers that are found to sleep.

Connect Instance

Connects one of the outgoing connectors belonging to the instance node to a named node in the instanced world.

  • The “Outgoing connector key” setting specifies the connector attached to the instance node that will be connected to a node in the instanced world.
  • The “Target node name” setting specifies the name of the node inside the instanced world to which the connector will be connected.

Move Connector

Takes an incoming connector that is connected to the instance node and reconnects it to a named node in the instanced world.

  • The “Incoming connector key” setting specifies the connector targeting the instance node that will be reconnected to a node in the instanced world.
  • The “Target node name” setting specifies the name of the node inside the instanced world to which the connector will be connected.

Delete Node

Deletes a named node in the instanced world.

  • The “Node name” setting specifies the name of the node inside the instanced world that will be deleted.

Replace Material

Replaces the material for a named geometry node in the instanced world with the material assigned to the instance node itself. If no name is given, then the materials for all geometry nodes in the instanced world are replaced.

  • The “Node name (blank for all)” setting specifies the name of the node inside the instanced world that will have its material replaced.

Remove Physics

Finds a top-level node having a rigid body controller in the instanced world and removes the controller. This modifier also deletes any physics shapes and joints in the entire instanced world.

Remove Lights

Deletes all light nodes in the instanced world.

Remove Sources

Deletes all source nodes in the instanced world.

Personal tools