Scriptname TGDisbandJailTriggerBoxScript extends ObjectReference  

Event OnTriggerEnter(ObjectReference akActionRef)

Actor AkAction = akActionRef as Actor
if TGDisband.GetStage() >= 30
	if akActionRef ==  Cellmate1 || akActionRef == Cellmate2 || akActionRef == Cellmate3
		akAction.SetOutfit(PrisonerOutfit)
		akAction.UnequipItem(PrisonerCuffs)
		akAction.RemoveItem(PrisonerCuffs)
		akAction.PlayIdle(IdleStop_Loose)
		akAction.StopCombatAlarm()
		akAction.SetPlayerTeammate(false)
		akAction.SetAV("WaitingForPlayer", 0)
		akAction.RemovefromFaction(CurrentFollowerFaction)
		akAction.PathtoReference(CellMarker, 0.5)
	endIf
	if pScript.pThievesArrested == 15 
	TGDisband.SetStage (30)
	endif	 
endif
endEvent

Actor Property Cellmate1 Auto
Actor Property Cellmate2 Auto
Actor Property Cellmate3 Auto
Armor Property PrisonerCuffs Auto
Faction Property CurrentFollowerFaction Auto
Idle Property IdleStop_Loose Auto
int Property pThievesArrested  Auto
ObjectReference Property JailDoor Auto
ObjectReference Property CellMarker Auto
Outfit Property PrisonerOutfit Auto
Quest Property TGDisband Auto 
TGDisbandQuestScript Property pScript  Auto  
