Fixed coin script

This commit is contained in:
Eddoursul 2024-01-28 02:09:14 +01:00
parent 9691a46c23
commit e4a82bd4c8
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -6,10 +6,11 @@ Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldCo
if akNewContainer == PlayerRef
PlayerRef.AddPerk(EddsLuckyCoinPerk)
elseif PlayerRef.GetItemCount(self) == 0
elseif PlayerRef.GetItemCount(EddsLuckyCoin) == 0
PlayerRef.RemovePerk(EddsLuckyCoinPerk)
endif
endEvent
Perk Property EddsLuckyCoinPerk Auto
MiscObject Property EddsLuckyCoin Auto