Jump to content

how to show in game location of an object reference


tonycubed2

Recommended Posts

Greetings.

 

I have 6 markers htat th eplayer can set in 6 different cells to mark them as safe. I provide an in game menu for the player to set them. Is there a way to output to the screen the location in Skyrim where the markers are, in order to remind the players where he put the markers? I tried the following sscript with and without the "as string" bit and while it compiles fine it will not show the location of the markers. Prefer a cell name.

 

If aibutton == 7
		abmenu = False
		elseif aibutton == 6
		aimessage = 1
		elseif aibutton == 0
		SafePlace.moveto(playerref)
		Debug.Notification("Location 1 Set to: "+SafePlace.GetParentCell() as String)
		elseif aibutton == 1
		SafePlace2.moveto(playerref)
		Debug.Notification("Location 2 Set to: "+SafePlace2.GetParentCell() as String)
		elseif aibutton == 2
		SafePlace3.moveto(playerref)
		Debug.Notification("Location 3 Set to: "+SafePlace3.GetParentCell() as String)
		elseif aibutton == 3
		SafePlace4.moveto(playerref)
		Debug.Notification("Location 4 Set to: "+SafePlace4.GetParentCell() as String)
		elseif aibutton == 4
		SafePlace5.moveto(playerref)
		Debug.Notification("Location 5 Set to: "+SafePlace5.GetParentCell() as String)
		elseif aibutton == 5
		SafePlace6.moveto(playerref)
		Debug.Notification("Location 6 Set to: "+SafePlace6.GetParentCell() as String)
		EndIf
	EndIf

Link to comment
Share on other sites

Hmmm... The descrption reads: Notes This function does not work on actors or object references, use the actor base or base object instead.

 

My markers are object references. I checked out the base object command but it does not deal with location in a cell... :-/

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...