SetCritDamage - Weapon

From Creation Kit
Jump to: navigation, search

SKSE Member of: Weapon Script

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

Syntax

Function SetCritDamage(int damage) native

Parameters

  • damage: The new critical damage of this weapon.

Return Value

None.

Examples

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

See Also