Skip to main content

LODBuilder

Sub-builder for LOD configuration, Distance (when a bullet throttles) and Interval (how hard). Opened via BehaviorBuilder:LOD. Call :Done() to return to the root BehaviorBuilder.

Functions​

Distance​

LODBuilder:Distance(value: number) → LODBuilder

Studs from the LOD origin beyond which this bullet steps at reduced frequency. 0 = always full frequency (LOD disabled for this cast).

Default: 0

Interval​

LODBuilder:Interval(value: number) → LODBuilder

Once the bullet is beyond Distance, step 1 frame in value.

The skipped time is banked and released into the catch-up step, so the flight path is unchanged, only its resolution is. Must be >= 1, where 1 means "never throttle". Non-integers are floored.

Default: 3

Done​

LODBuilder:Done() → BehaviorBuilder

Returns the root BehaviorBuilder.

Show raw api
{
    "functions": [
        {
            "name": "Distance",
            "desc": "Studs from the LOD origin beyond which this bullet steps at reduced frequency.\n`0` = always full frequency (LOD disabled for this cast).\n\nDefault: `0`",
            "params": [
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "LODBuilder"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 1302,
                "path": "docs/SubBuilders.lua"
            }
        },
        {
            "name": "Interval",
            "desc": "Once the bullet is beyond `Distance`, step 1 frame in `value`.\n\nThe skipped time is banked and released into the catch-up step, so the\nflight path is unchanged, only its resolution is. Must be `>= 1`, where\n`1` means \"never throttle\". Non-integers are floored.\n\nDefault: `3`",
            "params": [
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "LODBuilder"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 1316,
                "path": "docs/SubBuilders.lua"
            }
        },
        {
            "name": "Done",
            "desc": "Returns the root [BehaviorBuilder].",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "BehaviorBuilder"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 1322,
                "path": "docs/SubBuilders.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "LODBuilder",
    "desc": "Sub-builder for LOD configuration, `Distance` (when a bullet throttles) and\n`Interval` (how hard). Opened via [BehaviorBuilder:LOD].\nCall `:Done()` to return to the root [BehaviorBuilder].",
    "source": {
        "line": 1291,
        "path": "docs/SubBuilders.lua"
    }
}