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