2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_Theriantrophist_BlockCraftingSC extends ObjectReference
|
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
Message Property _00E_Theriantrophist_CantCraftMSG Auto
|
|
|
|
Race Property _00E_Theriantrophist_PlayerWerewolfRace Auto
|
|
|
|
|
|
|
|
Bool bActivationBlocked = False
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
Event OnInit()
|
|
|
|
BlockActivation(True)
|
2021-10-05 22:15:58 +00:00
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
2021-10-12 02:10:35 +00:00
|
|
|
If akActionRef == PlayerREF
|
|
|
|
If _00E_PlayerhousingMaster.ReferenceCanBeActivated(Self) && bActivationBlocked == False
|
|
|
|
bActivationBlocked = True
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
If PlayerREF.GetRace() == _00E_Theriantrophist_PlayerWerewolfRace
|
|
|
|
_00E_Theriantrophist_CantCraftMSG.Show()
|
|
|
|
Else
|
|
|
|
Activate(akActionRef, true)
|
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
bActivationBlocked = False
|
|
|
|
EndIf
|
|
|
|
Else
|
|
|
|
Activate(akActionRef, true)
|
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
EndEvent
|