Difference between revisions of "GetAttackDamage"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(Fixed syntax)
imported>WereWolf
Line 6: Line 6:


  (damage:long) ''reference.''GetAttackDamage ''objectID:ref''
  (damage:long) ''reference.''GetAttackDamage ''objectID:ref''
'''Example:'''
ref Weapon
float WeaponDamage
set Weapon to player.[[GetEquippedObject]] 16
set WeaponDamage to Weapon.GetAttackDamage
Gets the attack damage value of the player's equipped weapon and store in ''WeaponDamage'' variable.


==See Also==
==See Also==

Revision as of 15:21, 9 September 2007

A command for Oblivion Script Extender

Returns the base attack damage.

Syntax:

(damage:long) reference.GetAttackDamage objectID:ref

Example:

ref Weapon
float WeaponDamage
set Weapon to player.GetEquippedObject 16
set WeaponDamage to Weapon.GetAttackDamage

Gets the attack damage value of the player's equipped weapon and store in WeaponDamage variable.

See Also