Skip to main content

PlatformDamage

Callable

  • PlatformDamage(Source: any, Target: any, Damage: number, Time: number, Type: string, AttackName?: string): void

  • Applies damage on a target, can become wounded at 0 health


    Parameters

    • Source: any

      The character doing the damage

    • Target: any

      The character getting the damage

    • Damage: number

      The number of damage to apply

    • Time: number

      The current time when the action is done

    • Type: string

      The damage type (Collsion or Action)

    • AttackName: string = ""

      The name of the attack that was done

    Returns void

    • Nothing