sm.melee

Information about melee attacks are located in `/Data/Melee/attacks.json`.

Functions:

  • meleeAttack
  • meleeAttack
  • meleeAttack
  • meleeAttack

  • sm.melee.meleeAttack(name, damage, origin, directionRange, source, delay=0, power=5000)

    Deprecated:

    Name is deprecated, use uuid instead

    Perform a melee attack

    Parameters:

    TypeNameDescription
    stringnameThe name of the melee attack.
    integerdamageThe damage the attack will inflict.
    Vec3originThe source position of the attack.
    Vec3directionRangeThe direction and reach of the attack.
    PlayersourceThe player that is the source of the attack.
    integerdelay=0The number of ticks before performing the attack. (Defaults to 0)
    numberpower=5000The strength of the knockback power.

    sm.melee.meleeAttack(name, damage, origin, directionRange, source, delay=0, power=5000)

    Deprecated:

    Name is deprecated, use uuid instead

    Perform a melee attack

    Parameters:

    TypeNameDescription
    stringnameThe name of the melee attack.
    integerdamageThe damage the attack will inflict.
    Vec3originThe source position of the attack.
    Vec3directionRangeThe direction and reach of the attack.
    UnitsourceThe unit that is the source of the attack.
    integerdelay=0The number of ticks before performing the attack. (Defaults to 0)
    numberpower=5000The strength of the knockback power.

    sm.melee.meleeAttack(uuid, damage, origin, directionRange, source, delay=0, power=5000)

    Perform a melee attack

    Parameters:

    TypeNameDescription
    UuiduuidThe uuid of the melee attack.
    integerdamageThe damage the attack will inflict.
    Vec3originThe source position of the attack.
    Vec3directionRangeThe direction and reach of the attack.
    PlayersourceThe player that is the source of the attack.
    integerdelay=0The number of ticks before performing the attack. (Defaults to 0)
    numberpower=5000The strength of the knockback power.

    sm.melee.meleeAttack(uuid, damage, origin, directionRange, source, delay=0, power=5000)

    Perform a melee attack

    Parameters:

    TypeNameDescription
    UuiduuidThe uuid of the melee attack.
    integerdamageThe damage the attack will inflict.
    Vec3originThe source position of the attack.
    Vec3directionRangeThe direction and reach of the attack.
    UnitsourceThe unit that is the source of the attack.
    integerdelay=0The number of ticks before performing the attack. (Defaults to 0)
    numberpower=5000The strength of the knockback power.