User:DragoonWraith/NifGetAltGrip
Jump to navigation
Jump to search
A command for NifScript
Syntax:
(string_var:path) [ref:weapon.]NifGetAltGrip [ref:weapon]
Returns the path (relative to the Data\Meshes folder) to a version of the weapon's model that uses the opposite number of hands. Creates that model if necessary.
Example:
set Weapon to player.GetEquippedObject 16 set pathString to NifGetAltGrip Weapon if ( pathString ) SetModelPathEx "%z" pathString Weapon
If Weapon was a one-handed blade or blunt weapon, it will now be two-handed. If two-handed blade or blunt weapon, it will now be one-handed. If a Bow or Staff, or if the player it unarmed, nothing happens.