Difference between revisions of "User:DragoonWraith/NifGetAltGrip"
Jump to navigation
Jump to search
User:DragoonWraith/NifGetAltGrip (edit)
Revision as of 18:32, 4 December 2008
, 18:32, 4 December 2008no edit summary
imported>DragoonWraith m (User:DragoonWraith/NifToggleHandedness moved to User:DragoonWraith/NifGetAltGrip: changed the name of this) |
imported>DragoonWraith |
||
Line 1: | Line 1: | ||
<!-- Begin Search Terms | <!-- Begin Search Terms | ||
Nif | Nif | ||
Get | |||
Alt | |||
Grip | |||
End Search Terms --> | End Search Terms --> | ||
A command for [[:Category:NifScript|NifScript]] | A command for [[:Category:NifScript|NifScript]] | ||
'''Syntax:''' | '''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:''' | '''Example:''' | ||
set Weapon to player.GetEquippedObject 16 | set Weapon to player.GetEquippedObject 16 | ||
set pathString to NifGetAltGrip Weapon | |||
if ( pathString ) | |||
SetModelPathEx "%z" pathString Weapon | |||
Weapon will be | If Weapon was a one-handed blade or blunt weapon, it will now be a two-hander. If two-handed blade or blunt weapon, a one-hander. If a Bow or Staff, or if the player it unarmed, nothing happens. | ||
[[Category: Functions (NifScript)|NifGetAltGrip]] |