Need help with door script

Post » Fri Nov 18, 2011 7:22 pm

I thought i make a new thread as it is a different problem to my other thread.

Heres the situation, i need a script that will allow a vault door to be opened ONLY with a control panel whilst ONLY having the key for it in the players inventory. I cant for the sake of my life get the vault door to open only with a control panel without a script or key. No joke ive must of spent about 10 hours trying to do this and i think im going to go insane. :brokencomputer:

p.s ive created my own control panel and key ready.

So any help would be appreciated. Thank you!
User avatar
Vickytoria Vasquez
 
Posts: 3456
Joined: Thu Aug 31, 2006 7:06 pm

Post » Fri Nov 18, 2011 8:37 am

begin on activate
if getitemcount mykey==0
message doorwillnotopen
return
endif
activate
end

(I didn't format the script but you get the spirit.)

Oherwise, have a look at MS16. The door will only open if the player has Amata's password
User avatar
Julia Schwalbe
 
Posts: 3557
Joined: Wed Apr 11, 2007 3:02 pm

Post » Fri Nov 18, 2011 3:51 pm

Set up the door as the linked reference to your control panel. Then the script for your control panel would be something like this:
ref linkrefBEGIN OnActivate player  set linkref to GetLinkedRef  if player.GetItemCount key > 0    linkref.unlock    linkref.setOpenState 1  else      endifEND

User avatar
Sista Sila
 
Posts: 3381
Joined: Fri Mar 30, 2007 12:25 pm

Post » Fri Nov 18, 2011 11:40 am

Thanks guys i think ive done one right but cant even try it out becuase of the turning camera crashes as mentioned in my other thread :(
User avatar
Dan Scott
 
Posts: 3373
Joined: Sun Nov 11, 2007 3:45 am


Return to Fallout 3