How to get an object name in a script ?

Post » Tue Jun 19, 2012 3:16 pm

I try, by scripting, to get an actor name in a variable. The wiki sample don't seems to word.

function (actor myactor)debug.notification("My id is " + myactor.getFormId() + " - My name is " + myactor)endfunction

Result on screen is : "My id is 78980 - My name is [actor"

How can I do ?


sorry for my bad english writing
User avatar
james reed
 
Posts: 3371
Joined: Tue Sep 18, 2007 12:18 am

Post » Tue Jun 19, 2012 2:32 pm

There is no way, currently, to get the name of an object in Papyrus. You'll have to wait for SKSE to implement this first.

Cipscis
User avatar
Catherine Harte
 
Posts: 3379
Joined: Sat Aug 26, 2006 12:58 pm


Return to V - Skyrim

cron