IsSword - Weapon
Jump to navigation
Jump to search
SKSE Member of: Weapon Script
Returns whether this weapon has the "WeapTypeSword" keyword. (This function requires SKSE)
Syntax[edit | edit source]
bool Function IsSword()
Parameters[edit | edit source]
- None
Return Value[edit | edit source]
True if the weapon has the "WeapTypeSword" keyword. False otherwise.
Examples[edit | edit source]
if (Game.GetPlayer().GetEquippedWeapon().IsSword()
Debug.Trace("Player is equipped with a sword.")
endif
Notes[edit | edit source]
- Uses the HasKeywordString function internally.