Difference between revisions of "ModAttackDamage"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(Fixed syntax)
imported>WereWolf
(Add example)
Line 5: Line 5:
'''Syntax:'''
'''Syntax:'''
  (nothing) ''reference.''ModAttackDamage modifyBy:float ''objectID:ref''
  (nothing) ''reference.''ModAttackDamage modifyBy:float ''objectID:ref''
'''Example:'''
ref Weapon
float WeaponDamage
set Weapon to player.[[GetEquippedObject]] 16
Weapon.ModAttackDamage 10
Add 10 to the current player's equipped weapon attack damage.


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

Revision as of 15:30, 9 September 2007

A command for Oblivion Script Extender

ModAttackDamage - modifies the base attack damage up or down.

Syntax:

(nothing) reference.ModAttackDamage modifyBy:float objectID:ref

Example:

ref Weapon
float WeaponDamage
set Weapon to player.GetEquippedObject 16
Weapon.ModAttackDamage 10

Add 10 to the current player's equipped weapon attack damage.

See Also