SetCritDamage - Weapon

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Weapon Script

Changes the critical damage of this weapon. (This function requires SKSE)

Syntax[edit | edit source]

Function SetCritDamage(int damage) native

Parameters[edit | edit source]

  • damage: The new critical damage of this weapon.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Double the crit damage of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetCritDamage(PlayerWeapon.GetCritDamage() * 2)

See Also[edit | edit source]