PowerHorse Engine
    Preparing search index...

    Hierarchy

    • Pseudo
      • AvatarState
    Index

    Constructors

    • Parameters

      • Player: Model | Player
      • OptionalFromDescription: number | boolean | AvatarStateSaveData | HumanoidDescription

      Returns AvatarState

    Properties

    Accessories: string = ""
    AccessoryAdded: Signal<(AccessoryKey: string, AccessoryId: number) => void>
    AccessoryRemoved: Signal<(AccessoryKey: string, AccessoryId: number) => void>
    AnimationBundle: number = -1
    AutoApplyOnReset: boolean = true
    BodyTypeScale: number = 0
    CharacterBundle: number = -1
    ClimbAnimation: number = 0
    DepthScale: number = 0
    DynamicHead: number = 0
    EmotesChanged: Signal<(newEmotes: { [key: string]: number }) => void>

    The actual roblox signal

    EquippedEmotesChanged: Signal<
        (newEquippedEmotes: { [key: string]: number }) => void,
    >

    The actual roblox signal

    Face: number = 0
    FallAnimation: number = 0
    GraphicTShirt: number = 0
    Head: number = 0
    HeadColor: Color3 = ...
    HeadScale: number = 0
    HeightScale: number = 0
    IdleAnimation: number = 0
    includeRigidAccessories: boolean = true
    JumpAnimation: number = 0
    LeftArm: number = 0
    LeftArmColor: Color3 = ...
    LeftLeg: number = 0
    LeftLegColor: Color3 = ...
    MaximumAccessoryBehavior: MaximumAccessoryBehavior = MaximumAccessoryBehavior.Shift
    MaximumAccessoryBehaviors: typeof MaximumAccessoryBehavior = MaximumAccessoryBehavior

    Pop - removes from back. Shift - removes from front.

    MoodAnimation: number = 0
    Pants: number = 0
    Player: Model | Player
    ProportionScale: number = 0
    Resetted: Signal<() => void>
    RightArm: number = 0
    RightArmColor: Color3 = ...
    RightLeg: number = 0
    RightLegColor: Color3 = ...
    RunAnimation: number = 0
    Shirt: number = 0
    SwimAnimation: number = 0
    Torso: number = 0
    TorsoColor: Color3 = ...
    WalkAnimation: number = 0
    WidthScale: number = 0

    Methods

    • To have the accessory actually applied, make sure to call _FilterMaximumAccessoriesForAllTypes and _applyDescription.

      Parameters

      Returns void

    • Parameters

      • ...args: [name: string, assetId: number]

      Returns void

    • Will resolve the type of item based on the AssetId provided.

      Parameters

      • UniqueKey: string
      • AssetId: number

      Returns Promise<void>

    • Parameters

      • AccessoryKeyOrId: string | number

      Returns number

    • Returns the type of method that would be used if you were to call Apply/Unapply based on the parameters provided.

      Does not support bundles.

      Parameters

      • AssetId: number

      Returns Promise<
          | undefined
          | {
              assetAccessoryType?: AccessoryType;
              assetType: AssetType;
              avatarStateProperty?: | "HeadColor"
              | "LeftArmColor"
              | "LeftLegColor"
              | "RightArmColor"
              | "RightLegColor"
              | "TorsoColor"
              | "BodyTypeScale"
              | "ClimbAnimation"
              | "DepthScale"
              | "Face"
              | "FallAnimation"
              | "GraphicTShirt"
              | "Head"
              | "HeadScale"
              | "HeightScale"
              | "IdleAnimation"
              | "JumpAnimation"
              | "LeftArm"
              | "LeftLeg"
              | "MoodAnimation"
              | "Pants"
              | "ProportionScale"
              | "RightArm"
              | "RightLeg"
              | "RunAnimation"
              | "Shirt"
              | "SwimAnimation"
              | "Torso"
              | "WalkAnimation"
              | "WidthScale";
          },
      >

    • Details are cached.

      Parameters

      • ...args: [Bundle: number]

      Returns Promise<BundleInfo>

    • Parameters

      • ...args: []

      Returns EmoteDictionary

    • Parameters

      • AccessoryType: AccessoryType

      Returns undefined | number

    • Details are cached.

      Parameters

      • ...args: [Product: number]

      Returns Promise<AssetProductInfo>

    • Parameters

      • AccessoryKeyOrId: string | number

      Returns boolean

    • Parameters

      • Player: Player

      Returns HumanoidDescription

    • Parameters

      • UserId: number

      Returns HumanoidDescription

    • Parameters

      • AccessoriesKeys: string[]

      Returns void

    • Parameters

      • AccessoryKey: string
      • OptionalDoNotApplyDescription: boolean

      Returns number

    • Parameters

      • AccessoryId: number
      • maxRemovals: number = 1

      Returns LuaTuple<number[]>

    • Returns void

    • Parameters

      • OptionalFromDescription: number | boolean | AvatarStateSaveData | HumanoidDescription
      • OptionalIsInitialRun: boolean

      Returns HumanoidDescription

    • Parameters

      • Key:
            | "HeadColor"
            | "LeftArmColor"
            | "LeftLegColor"
            | "RightArmColor"
            | "RightLegColor"
            | "TorsoColor"
            | "BodyTypeScale"
            | "ClimbAnimation"
            | "DepthScale"
            | "Face"
            | "FallAnimation"
            | "GraphicTShirt"
            | "Head"
            | "HeadScale"
            | "HeightScale"
            | "IdleAnimation"
            | "JumpAnimation"
            | "LeftArm"
            | "LeftLeg"
            | "MoodAnimation"
            | "Pants"
            | "ProportionScale"
            | "RightArm"
            | "RightLeg"
            | "RunAnimation"
            | "Shirt"
            | "SwimAnimation"
            | "Torso"
            | "WalkAnimation"
            | "WidthScale"
            | "DynamicHead"
            | "AnimationBundle"
            | "CharacterBundle"

      Returns void

    • Parameters

      • Color: Color3
      • OptionalExclude: readonly [
            "HeadColor",
            "LeftArmColor",
            "LeftLegColor",
            "RightArmColor",
            "RightLegColor",
            "TorsoColor",
        ]

      Returns void

    • Parameters

      • ...args: [emotes: EmoteDictionary]

      Returns void

    • Parameters

      • ...args: [equippedEmotes: EquippedEmotes]

      Returns void

    • Parameters

      • AccessoryType: AccessoryType
      • MaximumLimit: number

      Returns void

    • Parameters

      Returns void