Scriptname aaUCHouseReturnScript extends ObjectReference  
{Script for returning player to previous location from the house}

Message Property ReturnMsg Auto
{The message asking the player if they want to return}

ObjectReference Property ReturnMarker Auto
{The marker we are retuning to}

Actor Property PlayerREF Auto
{Points to the player}

EffectShader Property RecallEffect  Auto
{The effect shader}

Sound property RecallSound auto
{The sound on activate}

Event OnActivate(ObjectReference akActionRef)

	Int iButton = ReturnMsg.Show()

		If (iButton == 0)
			If akActionRef == PlayerREF
				RecallSound.play(self)
				utility.wait(2)
				RecallEffect.Play(akActionRef, 1)
                		akActionRef.Moveto(ReturnMarker)			
			endif
		ElseIf (iButton == 1)
			Return 
        	EndIf

endEvent