enderalse/source/scripts/_00e_diggershollowskywalkeractivatorsc.psc

21 lines
550 B
Plaintext
Raw Normal View History

Scriptname _00E_DiggersHollowSkywalkerActivatorSC extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
If akActionRef == PlayerREF
_00E_DiggersHollowSkywalkerMessage.Show()
If !bUnlockedAchievement && _00E_AchievementsEnabled.GetValueInt() == 1
Game.UnlockAchievement("END_LUKE_SKYWALKER_01")
bUnlockedAchievement = true
EndIf
EndIf
EndEvent
bool bUnlockedAchievement
Actor Property PlayerREF Auto
GlobalVariable Property _00E_AchievementsEnabled Auto
Message Property _00E_DiggersHollowSkywalkerMessage Auto