Skip to main content

NPCTraitSet

Callable

  • NPCTraitSet(C: NPCCharacter, TraitName: string, TraitValue: number): void

  • Sets a specific trait for a NPC


    Parameters

    • C: NPCCharacter

      NPC to set the trait for

    • TraitName: string

      Name of the trait to set

    • TraitValue: number

      Value of the trait to set

    Returns void

    • Nothing