;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 3
Scriptname aaaKimachuuCaptiveOff Extends TopicInfo Hidden

Faction Property aaaKimachuuCaptiveFaction Auto
Package Property aaaKimachuuCaptivePackage Auto
MiscObject Property aaaKimachuuCaptiveMisc Auto

;BEGIN FRAGMENT Fragment_2
Function Fragment_2(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
If (akSpeaker as Actor).GetCurrentPackage() == aaaKimachuuCaptivePackage
	ActorUtil.RemovePackageOverride(akSpeaker, aaaKimachuuCaptivePackage)
	akSpeaker.EvaluatePackage()
	akSpeaker.RemoveFromFaction(aaaKimachuuCaptiveFaction)
	akSpeaker.SetActorValue("Aggression", 1)
	akSpeaker.SetActorValue("Confidence", 2)
	akSpeaker.SetRestrained(false)
	Debug.SendAnimationEvent(akSpeaker, "IdleChairExitStart")
	Actor aPlayer = Game.GetPlayer()
	aPlayer.AddItem(aaaKimachuuCaptiveMisc, 3)
	debug.notification("Rescued.")
EndIf
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
