Weapon Script

From the CreationKit Wiki
Revision as of 09:28, 11 May 2012 by imported>Fg109 (→‎SKSE Member Functions)
Jump to navigation Jump to search


Extends: Form Script

Script for the manipulation of weapon base objects.

Definition

ScriptName Weapon extends Form

Properties

None

Global Functions

None

Member Functions

Function Fire(ObjectReference akSource)

  • Fires this weapon from the specified source object.

SKSE Member Functions

int Function GetBaseDamage()

  • Returns the base damage of this weapon.

Function SetBaseDamage(int damage)

  • Changes the base damage of this weapon.

int Function GetCritDamage()

  • Returns the critical damage of this weapon.

Function SetCritDamage(int damage)

  • Changes the critical damage of this weapon.

float Function GetReach()

  • Returns the reach of this weapon.

Function SetReach(float reach)

  • Changes the reach of this weapon.

float Function GetMinRange()

  • Returns the minimum range of this weapon.

Function SetMinRange(float minRange)

  • Changes the minimum range of this weapon.

float Function GetMaxRange()

  • Returns the maximum range of this weapon.

Function SetMaxRange(float maxRange)

  • Changes the maximum range of this weapon.

float Function GetSpeed()

  • Returns the speed of this weapon.

Function SetSpeed(float speed)

  • Changes the speed of this weapon.

float Function GetStagger()

  • Returns the stagger value of this weapon.

Function SetStagger(float stagger)

  • Changes the stagger value of this weapon.

int Function GetWeaponType()

  • Returns the weapon type of this weapon.

Function SetWeaponType(int type)

  • Changes the weapon type of this weapon.

string Function GetModelPath()

  • Returns the path to the file representing the in-game model of this weapon.

Function SetModelPath(string path)

  • Changes the path to the file representing the in-game model of this weapon.

string Function GetIconPath()

  • Returns the path to the file representing the icon of this weapon in the inventory.

Function SetIconPath(string path)

  • Changes the path to the file representing the icon of this weapon in the inventory.

string Function GetMessageIconPath()

  • Returns the path to the file representing the message icon for this weapon.

Function SetMessageIconPath(string path)

  • Changes the path to the file representing the message icon for this weapon.

bool Function IsBattleaxe()

  • Returns whether this weapon has the "WeapTypeBattleaxe" keyword.

bool Function IsBow()

  • Returns whether this weapon has the "WeapTypeBow" keyword.

bool Function IsDagger()

  • Returns whether this weapon has the "WeapTypeDagger" keyword.

bool Function IsGreatsword()

  • Returns whether this weapon has the "WeapTypeGreatsword" keyword.

bool Function IsMace()

  • Returns whether this weapon has the "WeapTypeMace" keyword.

bool Function IsStaff()

  • Returns whether this weapon has the "WeapTypeStaff" keyword.

bool Function IsSword()

  • Returns whether this weapon has the "WeapTypeSword" keyword.

bool Function IsWarhammer()

  • Returns whether this weapon has the "WeapTypeWarhammer" keyword.

bool Function IsWarAxe()

  • Returns whether this weapon has the "WeapTypeWarAxe" keyword.

Events

None