Jump to content

getting actor's name


Recommended Posts

After a few hours of trying to find a way to get an actor's name, I'm here to ask for help. (Google is not my friend)

 

I have and Actor array and I need to get the name of the actors. How can I get it?

 

ActorsArray[0].GetName() doesn't work...

 

 

 

Link to comment
Share on other sites

Just for the sake of completeness it's also possible without F4SE, if that matters.

 

1) Create a Quest: Run Once flag must be unchecked

2) Add a Reference Alias: name it MyAlias, Uses Stored Text must be checked.

3) In a script, fill your actor to the reference alias you made in 2)

4) Create a Message form: name it MyMessage, Owner Quest should be the quest you made in 1), Message Text: The Actor's name is <Alias=MyAlias>.

5) Call MyMessage.Show() to display the actor's name.

Edited by LarannKiar
Link to comment
Share on other sites

Another option, from the ObjectReference Script: ContainerActor[0].GetDisplayName()

I used that function along with "Rename Anything" "SetRefName()" to copy a ref name to another but it only works when the PC is in same cell (refs are 3d loaded)

Link to comment
Share on other sites

 

Another option, from the ObjectReference Script: ContainerActor[0].GetDisplayName()

I used that function along with "Rename Anything" "SetRefName()" to copy a ref name to another but it only works when the PC is in same cell (refs are 3d loaded)

 

GetDisplayName() should also work on unloaded but persistent object references that have displayable names.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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