[過去ログ] SKYRIMの質問に全力で答えるスレ Part142 (1002レス)
1-

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
479
(1): 警備員[Lv.18][苗] (ワッチョイ a6c9-cK01) 2024/04/27(土)10:18 ID:wZVEqkqz0(9/19) AAS
>>469
>>478の続き

Event OnInit()
Utility.Wait(0.1)
OnPlayerLoadGame()
EndEvent

Event OnPlayerLoadGame()
Utility.Wait(0.1)
RegisterForAnimationEvent(PlayerRef, "weaponDraw")
If !PlayerRef.HasSpell(BareHandsToggleSpell)
PlayerRef.AddSpell(BareHandsToggleSpell, False)
EndIf
EndEvent

Event OnRaceSwitchComplete()
Utility.Wait(0.1)
RegisterForAnimationEvent(PlayerRef, "weaponDraw")
EndEvent

Event OnAnimationEvent(ObjectReference akSource, string asEventName)
If SwitchBarehands.GetValue() == 1
Return
EndIf

If asEventName == "weaponDraw"
If PlayerRef.GetItemCount(BareHand) != 2
PlayerRef.RemoveItem(BareHand, 99, True)
PlayerRef.AddItem(BareHand, 2, True)
EndIf

If PlayerRef.GetEquippedWeapon() == None && PlayerRef.GetEquippedSpell(1) == None ; Right hand
PlayerRef.EquipItemEx(BareHand, 1)
EndIf

If PlayerRef.GetEquippedWeapon(True) == None && PlayerRef.GetEquippedSpell(0) == None ; Left hand
PlayerRef.EquipItemEx(BareHand, 2)
EndIf
EndIf
EndEvent
1-
あと 523 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.008s