Send SKSE events when using custom crafting stations
This commit is contained in:
parent
c897cdcf12
commit
868a0af918
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -8,9 +8,13 @@ Function Fragment_0(ObjectReference akTargetRef, Actor akActor)
|
|||||||
int iButton = _00E_Smelting_DismantlingMSG.Show()
|
int iButton = _00E_Smelting_DismantlingMSG.Show()
|
||||||
|
|
||||||
If iButton == 0 ; if the player wants to process ore into ingots
|
If iButton == 0 ; if the player wants to process ore into ingots
|
||||||
|
if ! akTargetRef.IsFurnitureInUse()
|
||||||
|
akTargetRef.SendModEvent("Enderal_StartCrafting")
|
||||||
|
endif
|
||||||
akTargetRef.Activate(akActor, true)
|
akTargetRef.Activate(akActor, true)
|
||||||
ElseIf iButton == 1 ; if the player wants to dismantle items back into crafting components, disable player controls
|
ElseIf iButton == 1 ; if the player wants to dismantle items back into crafting components, disable player controls
|
||||||
Game.DisablePlayerControls(true, true, true, true, true, true, true, true)
|
Game.DisablePlayerControls(true, true, true, true, true, true, true, true)
|
||||||
|
_00E_Dismantling_SmelterREF.SendModEvent("Enderal_StartDismantling")
|
||||||
_00E_Dismantling_SmelterREF.Activate(akActor)
|
_00E_Dismantling_SmelterREF.Activate(akActor)
|
||||||
Else
|
Else
|
||||||
return
|
return
|
||||||
|
@ -165,6 +165,9 @@ Bool Function _ShowMainMenu()
|
|||||||
RegisterForMenu(CRAFTING_MENU)
|
RegisterForMenu(CRAFTING_MENU)
|
||||||
phasmalistControlQuest.AddEnchantmentItem()
|
phasmalistControlQuest.AddEnchantmentItem()
|
||||||
ReleaseApparition()
|
ReleaseApparition()
|
||||||
|
if ! self.IsFurnitureInUse()
|
||||||
|
self.SendModEvent("Enderal_StartCrafting")
|
||||||
|
endif
|
||||||
self.activate(PlayerREF, true)
|
self.activate(PlayerREF, true)
|
||||||
GoToState("")
|
GoToState("")
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|||||||
(FS_NQ05 as _00E_FS_NQ05_Functions).AskCreatePotion()
|
(FS_NQ05 as _00E_FS_NQ05_Functions).AskCreatePotion()
|
||||||
(FS_NQ07 as _00E_FS_NQ07_Functions).AskCreatePotion()
|
(FS_NQ07 as _00E_FS_NQ07_Functions).AskCreatePotion()
|
||||||
Utility.Wait(1.0)
|
Utility.Wait(1.0)
|
||||||
|
_00E_Theriantrophist_SummonPortableLaboratory_Target.SendModEvent("Enderal_StartCrafting")
|
||||||
_00E_Theriantrophist_SummonPortableLaboratory_Target.activate(PlayerREF, true)
|
_00E_Theriantrophist_SummonPortableLaboratory_Target.activate(PlayerREF, true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user