Difference between revisions of "SetAttackDamage"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
imported>WereWolf
Line 4: Line 4:
  (nothing) ''reference''.SetAttackDamage nuDamage:long ''objectID:ref''
  (nothing) ''reference''.SetAttackDamage nuDamage:long ''objectID:ref''


SetAttackDamage - sets the base attack damage.
Sets the base attack damage.


'''Example:'''
'''Example:'''

Revision as of 13:22, 14 September 2007

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 Weapon.GetAttackDamage
set WeaponDamage to WeaponDamage * 2
Weapon.SetAttackDamage WeaponDamage

Double the current player's equipped weapon attack damage.

See Also