Activate as a fragment?

Post » Fri Apr 11, 2014 3:31 am

I'm a little lost here, it makes sense to me in a way - what I want to happen is that portcullis bars (spears if you like) are withdrawn so player can exit a dungeon. They were activated by a triggerbox when player entered, effectively locking player inside. Battle pursues, player wins, setstage is done and now I want the bars/spears retracted. I thought this would simply do it in the quest papyrus fragment.

SpearDoorLink.Activate()

It doesn't.

Error.

(172,14): argument akactivator is not specified and has no default value

Help please.

User avatar
Horror- Puppe
 
Posts: 3376
Joined: Fri Apr 13, 2007 11:09 am

Post » Fri Apr 11, 2014 2:31 am

The http://www.creationkit.com/Activate_-_ObjectReference needs at least one argument: the Activator, who/what will "do" the activation.

Try

SpearDoorLink.Activate(Game.GetPlayer())

for example.

-docblacky

User avatar
Mason Nevitt
 
Posts: 3346
Joined: Fri May 11, 2007 8:49 pm

Post » Fri Apr 11, 2014 3:07 am

Don't get too hung up on activating. Retracting the spears is what you want to happen, which is not an activation, just the result of one. Look at what the activation of the trigger box did, and put the end result into your script. The trigger activation is likely to be scripted as a one-time event, so your repeat won't do anything. You'll probably be playing an animation on the "door", or calling its Open().
User avatar
Cody Banks
 
Posts: 3393
Joined: Thu Nov 22, 2007 9:30 am


Return to V - Skyrim