2022-01-07 13:51:21 +00:00
|
|
|
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
|
2022-08-19 21:56:14 +00:00
|
|
|
;NEXT FRAGMENT INDEX 12
|
2022-01-07 13:51:21 +00:00
|
|
|
Scriptname PRKF__00E_SE_DismantlePerk_03009D21 Extends Perk Hidden
|
|
|
|
|
2022-08-19 21:56:14 +00:00
|
|
|
;BEGIN FRAGMENT Fragment_9
|
|
|
|
Function Fragment_9(ObjectReference akTargetRef, Actor akActor)
|
|
|
|
;BEGIN CODE
|
|
|
|
;
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
2022-01-07 13:51:21 +00:00
|
|
|
;BEGIN FRAGMENT Fragment_0
|
|
|
|
Function Fragment_0(ObjectReference akTargetRef, Actor akActor)
|
|
|
|
;BEGIN CODE
|
2022-08-19 21:56:14 +00:00
|
|
|
if ! akTargetRef.IsFurnitureInUse()
|
|
|
|
akTargetRef.SendModEvent("Enderal_StartCrafting")
|
|
|
|
endif
|
|
|
|
akTargetRef.Activate(akActor, true)
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_8
|
|
|
|
Function Fragment_8(ObjectReference akTargetRef, Actor akActor)
|
|
|
|
;BEGIN CODE
|
|
|
|
Game.DisablePlayerControls(true, true, true, true, true, true, true, true)
|
|
|
|
_00E_Dismantling_SmelterREF.SendModEvent("Enderal_StartDismantling")
|
|
|
|
_00E_Dismantling_SmelterREF.Activate(akActor)
|
2022-01-07 13:51:21 +00:00
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
|
|
|
|
|
|
|
|
Message Property _00E_Smelting_DismantlingMSG Auto
|
|
|
|
|
|
|
|
ObjectReference Property _00E_Dismantling_SmelterREF Auto
|