SetCritDamage - Weapon

Revision as of 10:26, 11 May 2012 by imported>Fg109 (Created page for SetCritDamage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: Weapon Script

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

SyntaxEdit

Function SetCritDamage(int damage) native

ParametersEdit

  • damage: The new critical damage of this weapon.

Return ValueEdit

None.

ExamplesEdit

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

See AlsoEdit