Activate an Activator

Post » Mon Jun 18, 2012 8:14 am

So I've been messing with scripting, and I was wondering. Is it possible to activate an activator with another activator, and have the activated activator run it's "OnActivate" block?

For example, lets say I have a trigger (which is a type of activator) with this script attached:

Scriptname ActivatorTriggerTestScript extends ObjectReferenceObjectReference Property target AutoEvent OnTriggerEnter(ObjectReference akActionRef)target.Activate(akActionRef)EndEvent

Now that would work if it was pointed at a door or something. But what if I wanted to activate another activator, that had, for example, this script:

Scriptname TriggerActivatedScript extends ObjectReference  Event OnActivate(ObjectReference akActivator)Debug.MessageBox("Test")EndEvent

Is this possible at all?
User avatar
I’m my own
 
Posts: 3344
Joined: Tue Oct 10, 2006 2:55 am

Post » Sun Jun 17, 2012 11:07 pm

I don't like bumping my threads, and I like double-posting even less, but I could really use an answer on this.
User avatar
Adam Baumgartner
 
Posts: 3344
Joined: Wed May 30, 2007 12:12 pm

Post » Mon Jun 18, 2012 12:35 am

That should be able to work. Take a look at the wiki's documentation of the function for some more info - http://www.creationkit.com/Activate_-_ObjectReference

Cipscis
User avatar
Sarah MacLeod
 
Posts: 3422
Joined: Tue Nov 07, 2006 1:39 am

Post » Sun Jun 17, 2012 6:46 pm

Well according to that, the script should work just fine...

But after much tinkering, nothing I do seems to work.

Don't suppose anyone else would be willing to give it a try?
User avatar
Samantha Pattison
 
Posts: 3407
Joined: Sat Oct 28, 2006 8:19 pm


Return to V - Skyrim