IsSword - Weapon
SKSE Member of: Weapon Script
Returns whether this weapon has the "WeapTypeSword" keyword. (This function requires SKSE)
SyntaxEdit
bool Function IsSword()
ParametersEdit
- None
Return ValueEdit
True if the weapon has the "WeapTypeSword" keyword. False otherwise.
ExamplesEdit
if (Game.GetPlayer().GetEquippedWeapon().IsSword()
Debug.Trace("Player is equipped with a sword.")
endif
NotesEdit
- Uses the HasKeywordString function internally.