Difference between revisions of "Weapon Script"
Jump to navigation
Jump to search
imported>Dienes |
imported>CraftySentinel m (Formatting Change) |
||
Line 21: | Line 21: | ||
== Member Functions == | == Member Functions == | ||
{|class="wikitable" width =100% | |||
!style="text-align:left;"|Function | |||
!style="text-align:left;"|Description | |||
|- | |||
|[[Fire - Weapon|'''Fire'''(ObjectReference ''akSource'')]] | |||
|Fires this weapon from the specified source object. | |||
|- | |||
|} | |||
== SKSE Member Functions == | == SKSE Member Functions == | ||
''' | {|class="wikitable" width =100% | ||
!style="text-align:left;"|Function | |||
!style="text-align:left;"|Description | |||
|- | |||
|[[GetBaseDamage - Weapon|Int '''GetBaseDamage'''()]] | |||
|Returns the base damage of this weapon. | |||
|- | |||
|[[SetBaseDamage - Weapon|'''SetBaseDamage'''(Int ''damage'')]] | |||
|Changes the base damage of this weapon. | |||
|- | |||
|[[GetCritDamage - Weapon|Int '''GetCritDamage'''()]] | |||
|Returns the critical damage of this weapon. | |||
|- | |||
|[[SetCritDamage - Weapon|'''SetCritDamage'''(Int ''damage'')]] | |||
|Changes the critical damage of this weapon. | |||
|- | |||
|[[GetReach - Weapon|Float '''GetReach'''()]] | |||
|Returns the reach of this weapon. | |||
|- | |||
|[[SetReach - Weapon|'''SetReach'''(Float ''reach'')]] | |||
|Changes the reach of this weapon. | |||
|- | |||
|[[GetMinRange - Weapon|Float '''GetMinRange'''()]] | |||
|Returns the minimum range of this weapon. | |||
|- | |||
|[[SetMinRange - Weapon|'''SetMinRange'''(Float ''minRange'')]] | |||
|Changes the minimum range of this weapon. | |||
|- | |||
|[[GetMaxRange - Weapon|Float '''GetMaxRange'''()]] | |||
|Returns the maximum range of this weapon. | |||
|- | |||
|[[SetMaxRange - Weapon|'''SetMaxRange'''(Float ''maxRange'')]] | |||
|Changes the maximum range of this weapon. | |||
|- | |||
|[[GetSpeed - Weapon|Float '''GetSpeed'''()]] | |||
|Returns the speed of this weapon. | |||
|- | |||
|[[SetSpeed - Weapon|'''SetSpeed'''(Float ''speed'')]] | |||
|Changes the speed of this weapon. | |||
|- | |||
|[[GetStagger - Weapon|Float '''GetStagger'''()]] | |||
|Returns the stagger value of this weapon. | |||
|- | |||
|[[SetStagger - Weapon|'''SetStagger'''(Float ''stagger'')]] | |||
|Changes the stagger value of this weapon. | |||
|- | |||
|[[GetWeaponType - Weapon|Int '''GetWeaponType'''()]] | |||
|Returns the weapon type of this weapon. | |||
|- | |||
|[[SetWeaponType - Weapon|'''SetWeaponType'''(Int ''type'')]] | |||
|Changes the weapon type of this weapon. | |||
|- | |||
|[[GetModelPath - Weapon|String '''GetModelPath'''()]] | |||
|Returns the path to the file representing the in-game model of this weapon. | |||
|- | |||
|[[SetModelPath - Weapon|'''SetModelPath'''(String ''path'')]] | |||
|Changes the path to the file representing the in-game model of this weapon. | |||
|- | |||
|[[GetIconPath - Weapon|String '''GetIconPath'''()]] | |||
|Returns the path to the file representing the icon of this weapon in the inventory. | |||
|- | |||
|[[SetIconPath - Weapon|'''SetIconPath'''(String ''path'')]] | |||
|Changes the path to the file representing the icon of this weapon in the inventory. | |||
|- | |||
|[[GetMessageIconPath - Weapon|String '''GetMessageIconPath'''()]] | |||
|Returns the path to the file representing the message icon for this weapon. | |||
|- | |||
|[[SetMessageIconPath - Weapon|'''SetMessageIconPath'''(String ''path'')]] | |||
|Changes the path to the file representing the message icon for this weapon. | |||
|- | |||
|[[IsBattleAxe - Weapon|Bool '''IsBattleAxe'''()]] | |||
|Returns whether this weapon has the "WeapTypeBattleaxe" keyword. | |||
|- | |||
|[[IsBow - Weapon|Bool '''IsBow'''()]] | |||
|Returns whether this weapon has the "WeapTypeBow" keyword. | |||
|- | |||
|[[IsDagger - Weapon|Bool '''IsDagger'''()]] | |||
|Returns whether this weapon has the "WeapTypeDagger" keyword. | |||
|- | |||
|[[IsGreatsword - Weapon|Bool '''IsGreatsword'''()]] | |||
|Returns whether this weapon has the "WeapTypeGreatsword" keyword. | |||
|- | |||
|[[IsMace - Weapon|Bool '''IsMace'''()]] | |||
|Returns whether this weapon has the "WeapTypeMace" keyword. | |||
|- | |||
|[[IsStaff - Weapon|Bool '''IsStaff'''()]] | |||
|Returns whether this weapon has the "WeapTypeStaff" keyword. | |||
|- | |||
|[[IsSword - Weapon|Bool '''IsSword'''()]] | |||
|Returns whether this weapon has the "WeapTypeSword" keyword. | |||
|- | |||
|[[IsWarhammer - Weapon|Bool '''IsWarhammer'''()]] | |||
|Returns whether this weapon has the "WeapTypeWarhammer" keyword. | |||
|- | |||
|[[IsWarAxe - Weapon|Bool '''IsWarAxe'''()]] | |||
|Returns whether this weapon has the "WeapTypeWarAxe" keyword. | |||
|- | |||
|[[GetEnchantment - Weapon|Enchantment '''GetEnchantment'''()]] | |||
|Returns the Enchantment associated with the weapon | |||
|- | |||
|[[SetEnchantment - Weapon|'''SetEnchantment'''(Enchantment ''e'')]] | |||
|Set the Enchantment associated with the weapon | |||
|- | |||
|} | |||
== Events == | == Events == | ||
None | None |
Revision as of 05:43, 24 October 2013
Extends: Form Script
Script for the manipulation of weapon base objects.
Definition
ScriptName Weapon extends Form
Properties
None
Global Functions
None
Member Functions
Function | Description |
---|---|
Fire(ObjectReference akSource) | Fires this weapon from the specified source object. |
SKSE Member Functions
Function | Description |
---|---|
Int GetBaseDamage() | Returns the base damage of this weapon. |
SetBaseDamage(Int damage) | Changes the base damage of this weapon. |
Int GetCritDamage() | Returns the critical damage of this weapon. |
SetCritDamage(Int damage) | Changes the critical damage of this weapon. |
Float GetReach() | Returns the reach of this weapon. |
SetReach(Float reach) | Changes the reach of this weapon. |
Float GetMinRange() | Returns the minimum range of this weapon. |
SetMinRange(Float minRange) | Changes the minimum range of this weapon. |
Float GetMaxRange() | Returns the maximum range of this weapon. |
SetMaxRange(Float maxRange) | Changes the maximum range of this weapon. |
Float GetSpeed() | Returns the speed of this weapon. |
SetSpeed(Float speed) | Changes the speed of this weapon. |
Float GetStagger() | Returns the stagger value of this weapon. |
SetStagger(Float stagger) | Changes the stagger value of this weapon. |
Int GetWeaponType() | Returns the weapon type of this weapon. |
SetWeaponType(Int type) | Changes the weapon type of this weapon. |
String GetModelPath() | Returns the path to the file representing the in-game model of this weapon. |
SetModelPath(String path) | Changes the path to the file representing the in-game model of this weapon. |
String GetIconPath() | Returns the path to the file representing the icon of this weapon in the inventory. |
SetIconPath(String path) | Changes the path to the file representing the icon of this weapon in the inventory. |
String GetMessageIconPath() | Returns the path to the file representing the message icon for this weapon. |
SetMessageIconPath(String path) | Changes the path to the file representing the message icon for this weapon. |
Bool IsBattleAxe() | Returns whether this weapon has the "WeapTypeBattleaxe" keyword. |
Bool IsBow() | Returns whether this weapon has the "WeapTypeBow" keyword. |
Bool IsDagger() | Returns whether this weapon has the "WeapTypeDagger" keyword. |
Bool IsGreatsword() | Returns whether this weapon has the "WeapTypeGreatsword" keyword. |
Bool IsMace() | Returns whether this weapon has the "WeapTypeMace" keyword. |
Bool IsStaff() | Returns whether this weapon has the "WeapTypeStaff" keyword. |
Bool IsSword() | Returns whether this weapon has the "WeapTypeSword" keyword. |
Bool IsWarhammer() | Returns whether this weapon has the "WeapTypeWarhammer" keyword. |
Bool IsWarAxe() | Returns whether this weapon has the "WeapTypeWarAxe" keyword. |
Enchantment GetEnchantment() | Returns the Enchantment associated with the weapon |
SetEnchantment(Enchantment e) | Set the Enchantment associated with the weapon |
Events
None