enderalse/source/scripts/_00e_nq_g_06_chestactivationevent.psc

34 lines
583 B
Plaintext

Scriptname _00E_NQ_G_06_ChestActivationEvent extends ObjectReference
event OnInit()
; Block loot menus
BlockActivation()
endevent
Event OnLoad()
BlockActivation()
endEvent
Event OnActivate(ObjectReference akActionRef)
if akActionRef == Game.GetForm(0x14)
Activate(akActionRef, true)
Utility.Wait(0.1)
if !bDone && _00E_NQ_G_SidedMael.GetValueInt() == 1
bDone = true
NQ_G_06.SpawnKileans()
EndIf
endif
EndEvent
bool bDone
Actor Property PlayerREF Auto
_00E_NQ_G_06_Functions Property NQ_G_06 Auto
GlobalVariable Property _00E_NQ_G_SidedMael Auto