How do I make a door open when I activate an objec

Post » Tue Aug 13, 2013 12:36 pm

Yeah so like the title says I am using the soulcairn portal in the Vampire castle as a doorway but i want to attach a script to a statue that will make the soulcairn portal open and close every time I press it.

Would be something like :

OnEventActivate ................. open/close soulcairn portal

Need someone to construct the script please

User avatar
Greg Cavaliere
 
Posts: 3514
Joined: Thu Nov 01, 2007 6:31 am

Post » Tue Aug 13, 2013 10:13 am

ou can find lots of examples of this withing the game: levers activating bridges, objects activating secret doors, etc. Take a look at how they are done. :) I think all you have to do in the render view of the ck is put the object as "activate parent" of the door.

User avatar
Emily Jones
 
Posts: 3425
Joined: Mon Jul 17, 2006 3:33 pm

Post » Tue Aug 13, 2013 5:50 pm

I want to know too,

I have a keyhole that i want to put an activator on but i never used an activator.

is there a particular type of activator im supposed to use? Do I need to create a new form id for my use?

@ Morrowind

Idk if you need to set the statue as a property, someone else will have to fill this in:

ScriptName OpenPortalScript Extends ObjectReference

Bool bToggle ; bToggle being the Activator

Event OnActivate(ObjectReference akActionRef)
bToggle = !bToggle ; Set Bool to whatever it's not
If bToggle ; True
; Do stuff
Else ; False
; Undo stuff
Endif
EndEvent

User avatar
Jessie Rae Brouillette
 
Posts: 3469
Joined: Mon Dec 11, 2006 9:50 am


Return to V - Skyrim