Fixed coin script
This commit is contained in:
parent
9691a46c23
commit
e4a82bd4c8
Binary file not shown.
Binary file not shown.
@ -6,10 +6,11 @@ Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldCo
|
|||||||
|
|
||||||
if akNewContainer == PlayerRef
|
if akNewContainer == PlayerRef
|
||||||
PlayerRef.AddPerk(EddsLuckyCoinPerk)
|
PlayerRef.AddPerk(EddsLuckyCoinPerk)
|
||||||
elseif PlayerRef.GetItemCount(self) == 0
|
elseif PlayerRef.GetItemCount(EddsLuckyCoin) == 0
|
||||||
PlayerRef.RemovePerk(EddsLuckyCoinPerk)
|
PlayerRef.RemovePerk(EddsLuckyCoinPerk)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endEvent
|
endEvent
|
||||||
|
|
||||||
Perk Property EddsLuckyCoinPerk Auto
|
Perk Property EddsLuckyCoinPerk Auto
|
||||||
|
MiscObject Property EddsLuckyCoin Auto
|
||||||
|
Loading…
Reference in New Issue
Block a user