Background for Skyrim SE

Weapon


Inheritance Tree

No indexed scripts extend this script.

Properties
Events
Functions
voidfunctionFire(ObjectReferenceakSource, AmmoakAmmo=NONE)Native

Fires the weapon from the the specified object reference, using the specified ammo.

intfunctionGetBaseDamage()Native

Returns the base damage of this weapon. (This function requires SKSE)

voidfunctionSetBaseDamage(intdamage)Native

Changes the base damage of this weapon. (This function requires SKSE)

intfunctionGetCritDamage()Native

Returns the critical damage of this weapon. (This function requires SKSE)

voidfunctionSetCritDamage(intdamage)Native

Changes the critical damage of this weapon. (This function requires SKSE)

floatfunctionGetReach()Native

Returns the reach of this weapon. (This function requires SKSE)

voidfunctionSetReach(floatreach)Native

Changes the reach of this weapon. (This function requires SKSE)

floatfunctionGetMinRange()Native

Returns the minimum range of this weapon. (This function requires SKSE)

voidfunctionSetMinRange(floatminRange)Native

Changes the minimum range of this weapon. (This function requires SKSE)

floatfunctionGetMaxRange()Native

Returns the maximum range of this weapon. (This function requires SKSE)

voidfunctionSetMaxRange(floatmaxRange)Native

Changes the maximum range of this weapon. (This function requires SKSE)

floatfunctionGetSpeed()Native

Returns the speed of this weapon. (This function requires SKSE)

voidfunctionSetSpeed(floatspeed)Native

Changes the speed of this weapon. (This function requires SKSE)

floatfunctionGetStagger()Native

Returns the stagger value of this weapon. (This function requires SKSE)

voidfunctionSetStagger(floatstagger)Native

Changes the stagger value of this weapon. (This function requires SKSE)

intfunctionGetWeaponType()Native

Returns the weapon type of this weapon. (This function requires SKSE)

voidfunctionSetWeaponType(inttype)Native

Changes the weapon type of this weapon. (This function requires SKSE)

stringfunctionGetModelPath()Native

Returns the path to the file representing the in-game model of this weapon. (This function requires SKSE)

voidfunctionSetModelPath(stringpath)Native

Changes the path to the file representing the in-game model of this weapon. (This function requires SKSE)

stringfunctionGetIconPath()Native

works on the path to the nif file representing the icon for the weapon in the inventory

voidfunctionSetIconPath(stringpath)Native
stringfunctionGetMessageIconPath()Native

works on the path to the file representing the message icon for the weapon

voidfunctionSetMessageIconPath(stringpath)Native

Returns the Enchantment associated with this armor. Note refers to the base object, not an object reference. (This function requires SKSE)

voidfunctionSetEnchantment(Enchantmente)Native

Sets the Enchantment associated with this armor. Note refers to the base object, not an object reference. (This function requires SKSE)

intfunctionGetEnchantmentValue()Native

works on the enchantment value of the associated weapon

voidfunctionSetEnchantmentValue(intvalue)Native
StaticfunctionGetEquippedModel()Native

works on the weapon model when equipped of the associated weapon

voidfunctionSetEquippedModel(Staticmodel)Native
EquipSlotfunctionGetEquipType()Native

Returns the particular equipslot type

voidfunctionSetEquipType(EquipSlottype)Native

Set the equip type of this weapon. (This function requires SKSE)

stringfunctionGetSkill()Native
voidfunctionSetSkill(stringskill)Native
stringfunctionGetResist()Native

DamageResist
ElectricResist
FireResist
FrostResist
MagicResist
PoisonResist

voidfunctionSetResist(stringresist)Native

Do not pass "None" as an argument to SetResist. It will cause weapons to CTD when you attempt to deal damage with them.

SpellfunctionGetCritEffect()Native

works on the spell that applies when critting

voidfunctionSetCritEffect(Spellce)Native
boolfunctionGetCritEffectOnDeath()Native

Gets, sets or unsets whether the the crit effect should only occur on death

voidfunctionSetCritEffectOnDeath(boolceod)Native
floatfunctionGetCritMultiplier()Native

Gets/sets the weapons crit multiplier

voidfunctionSetCritMultiplier(floatcrit)Native
WeaponfunctionGetTemplate()Native

returns the weapon template of this weapon

boolfunctionIsBattleaxe()
boolfunctionIsBow()

Returns whether this weapon has the "WeapTypeBow" keyword. (This function requires SKSE)

boolfunctionIsDagger()

Returns whether this weapon has the "WeapTypeDagger" keyword. (This function requires SKSE)

boolfunctionIsGreatsword()

Returns whether this weapon has the "WeapTypeGreatsword" keyword. (This function requires SKSE)

boolfunctionIsMace()

Returns whether this weapon has the "WeapTypeMace" keyword. (This function requires SKSE)

boolfunctionIsStaff()

Returns whether this weapon has the "WeapTypeStaff" keyword. (This function requires SKSE)

boolfunctionIsSword()

Returns whether this weapon has the "WeapTypeSword" keyword. (This function requires SKSE)

boolfunctionIsWarhammer()

Returns whether this weapon has the "WeapTypeWarhammer" keyword. (This function requires SKSE)

boolfunctionIsWarAxe()

Returns whether this weapon has the "WeapTypeWarAxe" keyword. (This function requires SKSE)

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.