Scriptname aaaKimachuuSignScriptOCC03 Extends ObjectReference

Actor Property PlayerRef Auto
MiscObject Property Misc02 Auto

Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
	if akNewContainer == PlayerRef
		ObjectReference signRef = akNewContainer.PlaceAtMe(Misc02, 1)
		signRef.SetActorOwner(PlayerRef.GetActorBase())
		String miscName = self.GetDisplayName()
		signRef.SetDisplayName(miscName)
		signRef.AddItem(akNewContainer)
		akNewContainer.RemoveItem(self, 1, true)
		signRef.Delete()
		signRef.Disable()
	EndIf
EndEvent