SetWeaponType

From the Oblivion ConstructionSet Wiki
Revision as of 20:47, 21 March 2008 by imported>DragoonWraith (not a record variable function)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

(nothing) reference.SetWeaponType weaponType:short objectID:ref

Sets the weapon type.

Weapon Type:
 0:    Blade1H
 1:    Blade2H
 2:    Blunt1H
 3:    Blunt2H
 4:    Staff
 5:    Bow

Example:

ref weapon
short weapontype
set weapon to player.GetEquippedObject 16
SetWeaponType 4 weapon

Sets player's equipped weapon type to 4:Staff.

See Also[edit | edit source]