Can you dynamically add scripts with properties to actors?

Post » Thu Jun 21, 2012 10:14 am

I have a script that I've been attaching to each and every actor that I make, which essentially says that if they get hit with a given weapon, they should take a appropriate random number of damage from it (for DnD rules). I want to dynamically attach it to everyone around the PC (and I know how to do that) but the problem is my script has 23 properties, and I need all of them to auto-fill. Can this be done?
User avatar
Rhysa Hughes
 
Posts: 3438
Joined: Thu Nov 23, 2006 3:00 pm

Post » Thu Jun 21, 2012 2:47 am

If you're adding the script through a magic effect, then you set the properties for the script when you add it to the magic effect. Every instance of that magic effect will use the properties you assigned to the magic effect in the CK.
User avatar
Christie Mitchell
 
Posts: 3389
Joined: Mon Nov 27, 2006 10:44 pm

Post » Thu Jun 21, 2012 9:40 am

Thanks.
User avatar
Luis Reyma
 
Posts: 3361
Joined: Fri Nov 02, 2007 11:10 am


Return to V - Skyrim