SetAttackDamage

From the Oblivion ConstructionSet Wiki
Revision as of 14:28, 10 June 2008 by imported>DragoonWraith (fixing example - GetEquippedObject returns an objectID, not a referenceID.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

See Also[edit | edit source]