Newb Scripting Question, What Do?

Post » Thu Jun 20, 2013 11:23 am

Hi all,

I am completely new at creation kit and I am being destroyed by scripting. The issue I cannot figure out is, is there a way to get the ID of the actor that the script is linked to? I think I can figure out the scripting, but finding the ID of the object the script is linked to has completely stumped me.

Thanks,

Masterlaw

User avatar
Jaylene Brower
 
Posts: 3347
Joined: Tue Aug 15, 2006 12:24 pm

Post » Wed Jun 19, 2013 9:42 pm

What is it that you're trying to do? Exactly what ID are you trying to find?

If, by "the actor that the script is linked to", you mean the actor to which the script is attached, they can be accessed via the special variable http://www.creationkit.com/Function_Reference#Special_Variables, but that's usually not necessary since non-global functions can be called implicitly on this reference.

Cipscis
User avatar
Emily Rose
 
Posts: 3482
Joined: Sat Feb 17, 2007 5:56 pm

Post » Wed Jun 19, 2013 9:03 pm

If you want to get the FormID of the actor the script is attached to, you can use http://www.creationkit.com/GetFormID_-_Form, although if you just want to call functions on it, you don't need to specify any variable, as Cipscis explained.

User avatar
Katie Pollard
 
Posts: 3460
Joined: Thu Nov 09, 2006 11:23 pm


Return to V - Skyrim