@cccode/fxr - v22.0.0

    Class NodeAttributes

    Slot: NodeAttributes

    Controls various things about the node, like its duration, and how it is attached to the parent node.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    attachment: AttachMode

    Controls how the node is attached to the parent node.

    Default: AttachMode.Parent

    delay: number

    The delay in seconds before the node becomes active.

    Default: 0

    depthBias: number

    Controls the rendering order of this node. Lower values will cause the node to be drawn in front of nodes with a higher value. This only affects the node with this action, it is not inherited by descendant nodes.

    This does not affect the actual depth of the node in the scene. It will still draw behind other objects even with a big negative bias. It only affects the order it is rendered in relative to other effects.

    Model particles and light sources are not affected by this in any way. Most, if not all, other types of appearances are affected by it, even GPU particles and lens flares.

    Default: 0

    duration: ScalarValue

    The node duration in seconds. Can be set to -1 to make the node last forever.

    Default: -1

    Argument: Constant 0

    The numeric ID for the type of action this represents.

    unk_ds3_f1_1: number

    Unknown integer.

    Default: 1

    Accessors

    Methods

    • Creates a minified version of this action.

      Some actions can be minified to make the output smaller. This is done by creating a simpler action that is functionally equivalent to this action.

      Actions that can not be minified will not be changed.

      Returns any

    • Scale the rate of time for the action.

      This method's main purpose is to serve as a fallback for changing the rate of time for Dark Souls 3 effects, which doesn't support the rateOfTime property. The rate of time is automatically scaled when writing effects for DS3, you do not need to do this yourself. As such, this method is only useful if you want to scale the rate of time for individual parts of an effect, or if you need the extra options available for this method.

      Parameters

      • factor: number

        The factor to scale the rate of time by. Setting this to 2 will make the action play twice as fast. Setting it to 0.5 will make it play half as fast.

      • Optionaloptions: { scaleTracerDuration?: boolean } = {}

        Extra options for changing how the scaling is applied to different properties.

      Returns NodeAttributes

    MMNEPVFCICPMFPCPTTAAATR