Difference between revisions of "Weapon Script"
Jump to navigation
Jump to search
→SKSE Member Functions: Added SKSE Member Function list
imported>Jog |
imported>Behippo (→SKSE Member Functions: Added SKSE Member Function list) |
||
Line 21: | Line 21: | ||
'''Function [[Fire - Weapon|Fire]](ObjectReference akSource)''' | '''Function [[Fire - Weapon|Fire]](ObjectReference akSource)''' | ||
*Fires this weapon from the specified source object. | *Fires this weapon from the specified source object. | ||
== SKSE Member Functions == | |||
'''int Function [[GetBaseDamage - Weapon|GetBaseDamage]]()''' | |||
*Returns the base damage of this weapon. | |||
'''Function [[SetBaseDamage - Weapon|SetBaseDamage]](int damage)''' | |||
*Changes the base damage of this weapon. | |||
'''int Function [[GetCritDamage - Weapon|GetCritDamage]]()''' | |||
*Returns the critical damage of this weapon. | |||
'''Function [[SetCritDamage - Weapon|SetCritDamage]](int damage)''' | |||
*Changes the base damage of this weapon. | |||
'''float Function [[GetReach - Weapon|GetReach]]()''' | |||
*Returns the reach of this weapon. | |||
'''Function [[SetReach - Weapon|SetReach]](float reach)''' | |||
*Changes the reach of this weapon. | |||
'''float Function [[GetMinRange - Weapon|GetMinRange]]()''' | |||
*Returns the minimum range of this weapon. | |||
'''Function [[SetMinRange - Weapon|SetMinRange]](float minRange)''' | |||
*Changes the minimum range of this weapon. | |||
'''float Function [[GetMaxRange - Weapon|GetMaxRange]]()''' | |||
*Returns the maximum range of this weapon. | |||
'''Function [[SetMaxRange - Weapon|SetMaxRange]](float maxRange)''' | |||
*Changes the maximum range of this weapon. | |||
'''float Function [[GetSpeed - Weapon|GetSpeed]]()''' | |||
*Returns the speed of this weapon. | |||
'''Function [[SetSpeed - Weapon|SetSpeed]](float speed)''' | |||
*Changes the speed of this weapon. | |||
'''float Function [[GetStagger - Weapon|GetStagger]]()''' | |||
*Returns the stagger value of this weapon. | |||
'''Function [[SetStagger - Weapon|SetStagger]](float stagger)''' | |||
*Changes the stagger value of this weapon. | |||
'''int Function [[GetWeaponType - Weapon|GetWeaponType]]()''' | |||
*Returns the weapon type of this weapon. | |||
'''Function [[SetWeaponType - Weapon|SetWeaponType]](int type)''' | |||
*Changes the weapon type of this weapon. | |||
'''string Function [[GetModelPath - Weapon|GetModelPath]]()''' | |||
*Returns the path to the file representing the in-game model of this weapon. | |||
'''Function [[SetModelPath - Weapon|SetModelPath]](string path)''' | |||
*Changes the path to the file representing the in-game model of this weapon. | |||
'''string Function [[GetIconPath - Weapon|GetIconPath]]()''' | |||
*Returns the path to the file representing the icon of this weapon in the inventory. | |||
'''Function [[SetIconPath - Weapon|SetIconPath]](string path)''' | |||
*Changes the path to the file representing the icon of this weapon in the inventory. | |||
'''string Function [[GetMessageIconPath - Weapon|GetMessageIconPath]]()''' | |||
*Returns the path to the file representing the message icon for this weapon. | |||
'''Function [[SetMessageIconPath - Weapon|SetMessageIconPath]](string path)''' | |||
*Changes the path to the file representing the message icon for this weapon. | |||
'''bool Function [[IsBattleAxe - Weapon|IsBattleaxe]]()''' | |||
*Returns whether this weapon has the "WeapTypeBattleaxe" keyword. | |||
'''bool Function [[IsBow - Weapon|IsBow]]()''' | |||
*Returns whether this weapon has the "WeapTypeBow" keyword. | |||
'''bool Function [[IsDagger - Weapon|IsDagger]]()''' | |||
*Returns whether this weapon has the "WeapTypeDagger" keyword. | |||
'''bool Function [[IsGreatsword - Weapon|IsGreatsword]]()''' | |||
*Returns whether this weapon has the "WeapTypeGreatsword" keyword. | |||
'''bool Function [[IsMace - Weapon|IsMace]]()''' | |||
*Returns whether this weapon has the "WeapTypeMace" keyword. | |||
'''bool Function [[IsStaff - Weapon|IsStaff]]()''' | |||
*Returns whether this weapon has the "WeapTypeStaff" keyword. | |||
'''bool Function [[IsSword - Weapon|IsSword]]()''' | |||
*Returns whether this weapon has the "WeapTypeSword" keyword. | |||
'''bool Function [[IsWarhammer - Weapon|IsWarhammer]]()''' | |||
*Returns whether this weapon has the "WeapTypeWarhammer" keyword. | |||
'''bool Function [[IsWarAxe - Weapon|IsWarAxe]]()''' | |||
*Returns whether this weapon has the "WeapTypeWarAxe" keyword. | |||
== Events == | == Events == | ||
None | None |