ScriptName aaaKimachuuEndOfTheCenturyNU Extends ActiveMagicEffect

Container property obj01 auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	Float fTime = Utility.RandomFloat(0.1, 0.2)
	Utility.Wait(fTime)

	If akTarget.IsChild()
		akTarget.Disable()
		akTarget.Delete()
		Return
	EndIf

	ObjectReference objRef = akTarget.PlaceAtMe(obj01)
	String objName = akTarget.GetLeveledActorBase().GetName()
	objRef.SetDisplayName(objName)
	akTarget.RemoveAllItems(objRef)
	akTarget.Disable()
	akTarget.Delete()
EndEvent