EquipableComponent

Component representing equippable items.

Inherits:

Summary
EquipableComponentComponent representing equippable items.
Functions
NKGetHandleTypeReturns the hardcoded weapon handle type.
NKGetAttackSpeedModifierReturns the attack speed modifier of this equipable.
NKGetMoveSpeedModifierReturns the move speed modifier of this equipable.
NKGetDamageToCharactersReturns the damage of this equipable.
NKGetWeaponRangeReturns the equipable swing range.
NKGetCurrentDurabilityReturns the current durability of this object.
NKSetCurrentDurabilitySets the durability of this object.
NKGetMaxDurabilityReturns the max durability of this object.
NKGetDamageToObjectsReturns the amount of damage this tool deals to objects.
NKModifyDurabilityAdds or subtracts an amount to the current durability of this object.
NKSetWeaponRangeSets the range of the weapon
NKSetDamageToObjectsSets the damage this object does vs objects.
NKSetDamageToCharactersSets the damage this object does vs characters.
NKSetMoveSpeedModifierSets the move speed modifier this item provides
NKSetAttackSpeedModifierSets the attack speed modifier this item provides
NKSetMaxDurabilitySets the maximum durability of this item

Functions

NKGetHandleType

Returns the hardcoded weapon handle type. see Scripts/Core/Common.lua EternusEngine.EHandleType.

Returns

intThe handle type.

NKGetAttackSpeedModifier

Returns the attack speed modifier of this equipable.

Returns

floatThe attack speed modifier.

NKGetMoveSpeedModifier

Returns the move speed modifier of this equipable.

Returns

floatThe move speed modifier.

NKGetDamageToCharacters

Returns the damage of this equipable.

Returns

floatThe weapon damage.

NKGetWeaponRange

Returns the equipable swing range.

Returns

floatThe swing range.

NKGetCurrentDurability

Returns the current durability of this object.

Returns

floatThe current durability of this object.

NKSetCurrentDurability

Sets the durability of this object.

Parameters

floatThe new durability value.
boolTrue to play emitters should the object change damage states, false otherwise.

NKGetMaxDurability

Returns the max durability of this object.

Returns

floatThe max durability of this object.

NKGetDamageToObjects

Returns the amount of damage this tool deals to objects.

Returns

floatThe amount of damage this tool deals to objects.

NKModifyDurability

Adds or subtracts an amount to the current durability of this object.

Parameters

floatThe amount of durability to add.

Returns

boolTrue if the object broke from this modification, false otherwise.

NKSetWeaponRange

Sets the range of the weapon

Parameters

floatThe range of the weapon

NKSetDamageToObjects

Sets the damage this object does vs objects.

Parameters

floatThe damage

NKSetDamageToCharacters

Sets the damage this object does vs characters.

Parameters

floatThe damage

NKSetMoveSpeedModifier

Sets the move speed modifier this item provides

Parameters

floatThe modifier

NKSetAttackSpeedModifier

Sets the attack speed modifier this item provides

Parameters

floatThe modifier

NKSetMaxDurability

Sets the maximum durability of this item

Parameters

floatThe max durability
Component allowing an object to be placed by generation.
Close