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
|
|
|
|
2022-01-07 13:51:21 +00:00
|
|
|
; This script is obsolete since 2.0.12 and has been replaced with a perk.
|
|
|
|
; Do not add it to new references.
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
2021-12-28 15:05:48 +00:00
|
|
|
; Unlock activators, blocked by previous version of the script
|
|
|
|
if IsActivationBlocked()
|
|
|
|
BlockActivation(False)
|
2022-01-07 13:51:21 +00:00
|
|
|
if Game.GetPlayer().GetRace() != _00E_Theriantrophist_PlayerWerewolfRace
|
|
|
|
Activate(akActionRef, true)
|
|
|
|
endif
|
2021-12-28 15:05:48 +00:00
|
|
|
endif
|
2021-10-05 22:15:58 +00:00
|
|
|
EndEvent
|