SetAttackDamage

Revision as of 12:19, 14 April 2008 by imported>Speedo (Incorrect syntax in example)

A command for Oblivion Script Extender

Syntax:

(nothing) reference.SetAttackDamage nuDamage:long objectID:ref

Sets the base attack damage.

Example:

ref Weapon
float WeaponDamage
set Weapon to player.GetEquippedObject 16
set WeaponDamage to GetAttackDamage Weapon
set WeaponDamage to WeaponDamage * 2
Weapon.SetAttackDamage WeaponDamage

Double the current player's equipped weapon attack damage.

See Also