Attaching a Script to actor Dynamically

Post » Thu Jun 21, 2012 9:37 pm

If I use the following to create an actor

ObjectReference JohnDoeRef = OutsideMarker.PlaceAtMe(JohnDoe.GetActorBase())


Can I attach an actor script form to the actor I have created ?
User avatar
Melissa De Thomasis
 
Posts: 3412
Joined: Tue Feb 27, 2007 6:52 pm

Post » Thu Jun 21, 2012 8:18 pm

You can attach an ability, with an active magic effect script. Magic effect scripts have access to all the actor script events.

You could also use a reference alias instead. Reference alias scripts also have access to all the actor script events.
User avatar
louise fortin
 
Posts: 3327
Joined: Wed Apr 04, 2007 4:51 am


Return to V - Skyrim