Jump to content

Getting an actor's name - from aliased actor?


chajapa

Recommended Posts

Posted

I use this to get an actor name from dialogue to use in Debug.Notification

akSpeaker.GetBaseObject().GetName()

So like this:

Debug.Notification(akSpeaker.GetBaseObject().GetName() + " is EXTRA MILKY!")

I have an actor in an alias and I get them into a SexLab animation by using this:

Alias_Follower.GetActorReference()

If I want to get that actor's name would I just replace "akSpeaker" with "Alias_Follower.GetActorReference()"

 

So it would look like this:

Alias_Follower.GetActorReference().GetBaseObject().GetName()

Or would this work:

Alias_Follower.GetActorReference().GetName()
Posted

To get names of an actor you should always call getLeveledActorBase() or in some cases you get strange names.

 

so considering that akSpeaker is of type Actor (it is given inside a TopicFragment), you can get the name with:

 

akSpeaker.getLeveledActorBase().getName()

 

if your origin is a reference alias then you have to get the Actor from the ReferenceAlias and then get the name in the same way:

 

Alias_Follower.getActorRef().getLeveledActorbase().getName()

 

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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