enderalse/source/scripts/_00e_blockactivationforplayer.psc

19 lines
367 B
Plaintext

Scriptname _00E_BlockActivationForPlayer extends ObjectReference
Event OnInit()
Self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer() && Self.IsActivationBlocked()
_00E_BlockedMessage.Show()
Else
Self.Activate(akActionRef, True)
EndIf
EndEvent
Message Property _00E_BlockedMessage Auto