Strata - v1.4.10
    Preparing search index...

    Interface GuardPresetConfig

    Configuration for the Guard NPC preset.

    interface GuardPresetConfig {
        chaseSpeed?: number;
        detectionRadius?: number;
        mass?: number;
        maxForce?: number;
        maxSpeed?: number;
        patrolSpeed?: number;
        patrolWaypoints: [number, number, number][];
    }

    Hierarchy (View Summary)

    Index

    Properties

    chaseSpeed?: number

    Speed when chasing a detected target. Default: 8.

    detectionRadius?: number

    Radius within which the guard detects targets. Default: 15.

    mass?: number

    Physical mass affecting momentum.

    maxForce?: number

    Maximum steering force.

    maxSpeed?: number

    Maximum movement speed.

    patrolSpeed?: number

    Speed when patrolling the waypoints. Default: 3.

    patrolWaypoints: [number, number, number][]

    Path points for the guard to patrol.