Difference between revisions of "SetAttackDamage"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(New page: SetAttackDamage - sets the base attack damage (nothing) reference.SetAttackDamage nuDamage:long objectID:ref ==Example== A command for [[:Category:Oblivion Script Extender|Obli...)
 
imported>DragoonWraith
(fixing example - GetEquippedObject returns an objectID, not a referenceID.)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
SetAttackDamage - sets the base attack damage
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]


        (nothing) reference.SetAttackDamage nuDamage:long objectID:ref
'''Syntax:'''
(nothing) ''reference''.SetAttackDamage nuDamage:long ''objectID:ref''


==Example==
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.


A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
==See Also==
*[[GetAttackDamage]]
*[[ModAttackDamage]]


[[Category: Functions]]
[[Category:Functions]]
[[Category: Functions (OBSE)]]
[[Category:Functions (OBSE)]]
[[Category:OBSE_Functions]]
[[Category:Inventory Functions]]
[[Category:Inventory Functions (OBSE)]]

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.

See Also[edit | edit source]