Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
924 B
26 lines
924 B
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
|
|
;NEXT FRAGMENT INDEX 8
|
|
Scriptname PRKF__00E_SE_DismantlePerk_03009D21 Extends Perk Hidden
|
|
|
|
;BEGIN FRAGMENT Fragment_0
|
|
Function Fragment_0(ObjectReference akTargetRef, Actor akActor)
|
|
;BEGIN CODE
|
|
int iButton = _00E_Smelting_DismantlingMSG.Show()
|
|
|
|
If iButton == 0 ; if the player wants to process ore into ingots
|
|
akTargetRef.Activate(akActor, true)
|
|
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)
|
|
_00E_Dismantling_SmelterREF.Activate(akActor)
|
|
Else
|
|
return
|
|
EndIf
|
|
;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
|
|
|