Jump to content

Papyrus - GetName function not returning anything


DJD2010

Recommended Posts

Hi.

 

I'm trying to acquire the current Combat Target's name, and it's not working.

 

Here's how I wrote the code:

string name
Actor target
 
target = Game.GetPlayer().GetCombatTarget()
name = target.GetActorBase().GetName()
Debug.Notification("Actor name is: "+name)

Every time the message appears, it just says "Actor name is: " and that's it.

 

I don't really care of what exactly is the actor's name, I just want it to be assigned because I want to know the length of it. Some other part of the code changes depending on the length of the actor's name.

 

Can someone help please?

 

EDIT:

I realize this post should be in another forum, sorry.

Edited by DJD2010
Link to comment
Share on other sites

  • Recently Browsing   0 members

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