chajapa Posted July 9, 2015 Posted July 9, 2015 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()
Guest Posted July 9, 2015 Posted July 9, 2015 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()
Recommended Posts
Archived
This topic is now archived and is closed to further replies.