parent
9146903b39
commit
1cfacfadfc
7 changed files with 70 additions and 10 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,32 @@ |
||||
Scriptname _00E_EquipControl Hidden |
||||
|
||||
bool function SheatheWeapon(Actor actorRef = None, bool bWaitForAnimation = true) global |
||||
|
||||
if actorRef == None |
||||
actorRef = Game.GetForm(0x14) as Actor |
||||
endif |
||||
|
||||
if ! actorRef.IsWeaponDrawn() |
||||
return false |
||||
endif |
||||
|
||||
if SKSE.GetVersion() |
||||
actorRef.SheatheWeapon() |
||||
else |
||||
Debug.SendAnimationEvent(actorRef, "Unequip") |
||||
endif |
||||
|
||||
if ! bWaitForAnimation |
||||
return true |
||||
endif |
||||
|
||||
int i = 0 |
||||
while i < 25 && actorRef.GetAnimationVariableBool("IsUnequipping") |
||||
Utility.Wait(0.1) |
||||
i += 1 |
||||
endwhile |
||||
Utility.Wait(0.1) |
||||
|
||||
return true |
||||
|
||||
endfunction |
Loading…
Reference in new issue