Jump to content

is there any script to detect player location?


Recommended Posts

hi, sorry for my bad english

is there any script to detect player location

something like this :

 

Debug.MessageBox("Hello player, your location is in " +your_location)

 

if you in Sanctuary Hills, the Message will out like this :

"Hello player, your location is in Sanctuary Hills"

 

is script like that exist?

Link to comment
Share on other sites

To show the name, you need the F4SE function getname.

 

example only:

 

String locName = Game.GetPlayer().GetCurrentLocation().GetName()
 
if locName != ""
    debug.messageBox("Hello player, your location is in " +locName)
else
    debug.messageBox("Hello player, this location has no name assigned to it.")
end
Link to comment
Share on other sites

 

To show the name, you need the F4SE function getname.

 

example only:

String locName = Game.GetPlayer().GetCurrentLocation().GetName()
 
if locName != ""
    debug.messageBox("Hello player, your location is in " +locName)
else
    debug.messageBox("Hello player, this location has no name assigned to it.")
end

ah thanks for reply,

i like to give you kudo,

but seems i have give you one, haha

Link to comment
Share on other sites

  • Recently Browsing   0 members

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