Difference between revisions of "GetAttackDamage"
Jump to navigation
Jump to search
imported>WereWolf (New page: A command for Oblivion Script Extender '''Syntax:''' (damage:long) reference.GetAttackDamage objectID:ref GetAttackDamage - returns the base attack...) |
imported>Speedo (Incorrect syntax in example) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
(damage:long) reference.GetAttackDamage objectID:ref | (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 GetAttackDamage Weapon | |||
Gets the attack damage value of the player's equipped weapon and store in ''WeaponDamage'' variable. | |||
==See Also== | |||
*[[SetAttackDamage]] | |||
*[[ModAttackDamage]] | |||
[[Category: Functions]] | [[Category:Functions]] | ||
[[Category: Functions (OBSE)]] | [[Category:Functions (OBSE)]] | ||
[[Category: | [[Category:Inventory Functions]] | ||
[[Category:Inventory Functions (OBSE)]] |
Latest revision as of 12:19, 14 April 2008
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 GetAttackDamage Weapon
Gets the attack damage value of the player's equipped weapon and store in WeaponDamage variable.