Difference between revisions of "GetAttackDamage"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
imported>WereWolf
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
Returns the base attack damage.


'''Syntax:'''
'''Syntax:'''
(damage:long) ''reference.''GetAttackDamage ''objectID:ref''


(damage:long) ''reference.''GetAttackDamage ''objectID:ref''
Returns the base attack damage.


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

Revision as of 13:25, 14 September 2007

A command for Oblivion Script Extender

Syntax:

(damage:long) reference.GetAttackDamage objectID:ref

Returns the base attack damage.

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