Перейти к основному содержанию

RadiationAPI

Index

Variables

effectDuration

effectDuration: {}

Type declaration

    consthazmatArmor

    hazmatArmor: {}

    Type declaration

      constradioactiveItems

      radioactiveItems: {}

      Type declaration

        sources

        sources: RadiationSource[]

        Functions

        addEffect

        • addEffect(ent: number, duration: number): void
        • Parameters

          • ent: number
          • duration: number

          Returns void

        addEffectInRange

        • addEffectInRange(region: WorldRegion, x: number, y: number, z: number, radius: number, duration: number): void
        • Parameters

          • region: WorldRegion
          • x: number
          • y: number
          • z: number
          • radius: number
          • duration: number

          Returns void

        addRadiation

        • addRadiation(playerUid: number, duration: number): void
        • Parameters

          • playerUid: number
          • duration: number

          Returns void

        addRadiationSource

        • addRadiationSource(x: number, y: number, z: number, dimension: number, radius: number, duration: number): void
        • Parameters

          • x: number
          • y: number
          • z: number
          • dimension: number
          • radius: number
          • duration: number

          Returns void

        emitItemRadiation

        • emitItemRadiation(entity: number, itemID: number): boolean
        • Parameters

          • entity: number
          • itemID: number

          Returns boolean

        getRadiation

        • getRadiation(playerUid: number): number
        • Parameters

          • playerUid: number

          Returns number

        getRadioactivity

        • getRadioactivity(itemID: number): { duration: number; stack: number }
        • Parameters

          • itemID: number

          Returns { duration: number; stack: number }

          • duration: number
          • stack: number

        hasHazmatSuit

        • hasHazmatSuit(playerUid: number): boolean
        • Parameters

          • playerUid: number

          Returns boolean

        isHazmatArmor

        • isHazmatArmor(itemID: number): boolean
        • Parameters

          • itemID: number

          Returns boolean

        isRadioactiveItem

        • isRadioactiveItem(itemID: number): boolean
        • Parameters

          • itemID: number

          Returns boolean

        registerHazmatArmor

        • registerHazmatArmor(itemID: number): void
        • Parameters

          • itemID: number

          Returns void

        setRadiation

        • setRadiation(playerUid: number, duration: number): void
        • Parameters

          • playerUid: number
          • duration: number

          Returns void

        setRadioactivity

        • setRadioactivity(itemID: number, duration: number, stack?: boolean): void
        • Parameters

          • itemID: number
          • duration: number
          • optionalstack: boolean

          Returns void