Difference between revisions of "SetAttackDamage"
Jump to navigation
Jump to search
imported>WereWolf |
imported>DragoonWraith (fixing example - GetEquippedObject returns an objectID, not a referenceID.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
(nothing) ''reference''.SetAttackDamage nuDamage:long ''objectID:ref'' | (nothing) ''reference''.SetAttackDamage nuDamage:long ''objectID:ref'' | ||
Sets the base attack damage. | |||
'''Example:''' | '''Example:''' | ||
Line 10: | Line 10: | ||
float WeaponDamage | float WeaponDamage | ||
set Weapon to player.[[GetEquippedObject]] 16 | set Weapon to player.[[GetEquippedObject]] 16 | ||
set WeaponDamage to | set WeaponDamage to [[GetAttackDamage]] Weapon | ||
set WeaponDamage to WeaponDamage * 2 | set WeaponDamage to WeaponDamage * 2 | ||
SetAttackDamage WeaponDamage Weapon | |||
Double the current player's equipped weapon attack damage. | Double the current player's equipped weapon attack damage. | ||
Latest revision as of 14:28, 10 June 2008
A command for Oblivion Script Extender
Syntax:
(nothing) reference.SetAttackDamage nuDamage:long objectID:ref
Sets the base attack damage.
Example:
ref Weapon float WeaponDamage set Weapon to player.GetEquippedObject 16 set WeaponDamage to GetAttackDamage Weapon set WeaponDamage to WeaponDamage * 2 SetAttackDamage WeaponDamage Weapon
Double the current player's equipped weapon attack damage.