h1z1-server
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • characterId: string
      • transientId: number
      • actorModelId: number
      • position: Float32Array
      • rotation: Float32Array
      • server: ZoneServer2016
      • spawnerId: number
      • item: BaseItem
      • parentObjectCharacterId: string
      • slot: string

      Returns Plant

    Properties

    actorModelId: number

    Id of the model that corresponds to the entity

    characterId: string

    Universal Identifier, used for locating the home of an entity

    creationTime: number = 0
    effectTags: number[] = []

    Used for vehicle abilities, array of the corresponding vehicles effects

    flags: {
        bit0: number;
        bit1: number;
        bit10: number;
        bit11: number;
        bit13: number;
        bit14: number;
        bit15: number;
        bit16: number;
        bit17: number;
        bit18: number;
        bit19: number;
        bit2: number;
        bit22: number;
        bit23: number;
        bit3: number;
        bit4: number;
        bit5: number;
        bit6: number;
        bit7: number;
        bit9: number;
        knockedOut: number;
        noCollide: number;
        nonAttackable: number;
        projectileCollision: number;
    } = ...

    Adjustable flags for the lightweight, useful flags: nonAttackable - disables melee flinch noCollide - determines if NpcCollision packet gets sent on player collide bit13 - causes a crash if 1 with noCollide 1 knockedOut - currently used for determining if a character is dead

    growState: number = 0

    Current state the crop is in

    growTime: 28800000

    Time (milliseconds) it takes for a crop to enter the next state - Default: 8hrs

    h1emu_ai_id?: bigint
    headActor: string = ...

    Returns the modelId of the lightweight, zombies or players

    health: number = 1000000

    Health of the lightweight

    interactionDistance: number

    Distance (H1Z1 meters) at which the player can interact with the entity

    isFertilized: boolean = false

    Returns true when a player uses fertilizer near the crop

    isLightweight: boolean = false

    Returns true if the character is a lightweight

    item: BaseItem
    materialType: number

    The physical material the entity is made of - See enums.ts/MaterialTypes for more information

    maxHealth: number = 1000000

    Maximum health of the lightweight

    movementVersion: number = 0
    nameId: number = 0

    Id of the lightweight, used in determining the proper name for HUDTimer and InteractionString

    navAgent?: CrowdAgent
    nextStateTime: number

    Next time (milliseconds) that the crop will enter the next state

    npcRenderDistance: number = 30

    Distance (H1Z1 meters) where the crop will render

    parentObjectCharacterId: string

    CharacterId of the PlantingDiamater the crop is occupying

    positionUpdateType: PositionUpdateType = PositionUpdateType.STATIC

    Determines if the lightweight is moving with the positionUpdate - Avcio

    profileId: number = 0

    Used for constructions

    scale: Float32Array<ArrayBuffer> = ...

    Physical size of the entity based on the entity model

    shaderGroupId: number = 0
    slot: string

    Current slot on a PlantingDiameter (4 slots in total)

    spawnerId: number = 0
    state: {
        lookAt: Float32Array;
        position: Float32Array;
        rotation: Float32Array;
        yaw: number;
    }

    State of the BaseLightweightCharacter, includes: state (Float32Array), rotation(Float32Array), lookAt(Float32Array), and yaw (number)

    temporaryActorModelId?: number
    transientId: number

    Required for interactable entities, npc and interaction components packet

    triggerExplosionShots: number = ...
    useSimpleStruct: boolean = false

    Determines if the lightweight should be used as a SimpleNpc (non-moving)

    Methods