SetBaseDamage - Weapon

From Creation Kit
Jump to: navigation, search

SKSE Member of: Weapon Script

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

Syntax

Function SetBaseDamage(int damage) native

Parameters

  • damage: The new base damage of this weapon.

Return Value

None.

Examples

; Double the base damage of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetBaseDamage(PlayerWeapon.GetBaseDamage() * 2)

See Also