Accessing the Properties Defined in FormType.psc

Post » Thu Sep 18, 2014 1:45 am

FormType.psc defines all the possible form types in the game as constants. Example:

int Property kLocationRef = 5 AutoReadOnly

How do I reference these constants in my scripts? This could be super simple. I just don't know how to reference a different script's properties in my script. Or, it might not be allowed? In that case, I guess I must simply copy and paste the constant that I want to use in my script?

User avatar
Laura
 
Posts: 3456
Joined: Sun Sep 10, 2006 7:11 am

Post » Wed Sep 17, 2014 4:21 pm

Usually MyScript.myProperty would do it, though I was unable to access the equipSlot properties in the Actor script yesterday (the compiler complained). I ended up just copying the properties to my script. Maybe there's a trick to it.
User avatar
Ashley Tamen
 
Posts: 3477
Joined: Sun Apr 08, 2007 6:17 am


Return to V - Skyrim