Difference between revisions of "SetAttackDamage"
Jump to navigation
Jump to search
imported>WereWolf |
imported>WereWolf |
||
Line 5: | Line 5: | ||
'''Syntax:''' | '''Syntax:''' | ||
(nothing) ''reference''.SetAttackDamage nuDamage:long ''objectID:ref'' | (nothing) ''reference''.SetAttackDamage nuDamage:long ''objectID:ref'' | ||
'''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== | ==See Also== |
Revision as of 15:28, 9 September 2007
A command for Oblivion Script Extender
SetAttackDamage - sets the base attack damage.
Syntax:
(nothing) reference.SetAttackDamage nuDamage:long objectID:ref
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.