Difference between revisions of "GetWeaponType"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(New page: A command for Oblivion Script Extender '''Syntax:''' (weaponType:short) reference.GetWeaponType objectID:ref Retuns the weapon type. '''Weapon T...)
 
imported>DragoonWraith
(typo fix, also not a record function)
 
Line 4: Line 4:
  (weaponType:short) reference.GetWeaponType objectID:ref
  (weaponType:short) reference.GetWeaponType objectID:ref


Retuns the weapon type.
Returns the weapon type.


  '''Weapon Type:'''
  '''Weapon Type:'''
Line 28: Line 28:
[[Category:Inventory Functions]]
[[Category:Inventory Functions]]
[[Category:Inventory Functions (OBSE)]]
[[Category:Inventory Functions (OBSE)]]
[[Category:Record Variable Functions]]
[[Category:Record Variable Functions (OBSE)]]

Latest revision as of 20:55, 21 March 2008

A command for Oblivion Script Extender

Syntax:

(weaponType:short) reference.GetWeaponType objectID:ref

Returns 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
set weapontype to GetWeaponType weapon

Gets player's equipped weapon type

See Also[edit | edit source]