User:DragoonWraith/NifGetOffhand
Jump to navigation
Jump to search
A command for NifScript
Syntax:
(string_var:path) [ref:weapon.]NifGetOffhand [ref:weapon]
Returns the path (relative to the Data\Meshes folder) to a version of the weapon's model that is held in the left hand. Creates that model if necessary.
Returns an empty string if this is impossible.
Example:
set Weapon to player.GetEquippedObject 16 set pathString to NifGetAltGrip Weapon if ( pathString ) SetModelPathEx "%z" pathString Shield
Sets Shield's model to a left-handed version of Weapon's model.