falloutperson416 Posted July 18, 2010 Share Posted July 18, 2010 Hello, i'm trying to make a script that activates a door. Here are some images of the script: In the game, as I enter the activator (Red box) my character freezes and I cant move. Help please! Link to comment Share on other sites More sharing options...
pkleiss Posted July 18, 2010 Share Posted July 18, 2010 Did you set the linked ref of the trigger to the door? Another possible problem is that you have two Actors (the turrets) already inside the trigger, I'm not sure how the trigger will respond in that instance as I have never attempted to place actors inside of triggers before. Lastly, you could use some implicit references instead of the MyLink variable. Things you may want to try: Use 'OnTriggerEnter Player' to force the trigger to only work for the player and not all actors.Give your door an editor ID (it must already be persistent as its being used as a linked reference), then instead of using MyLink, use the editor ID of the door, as in:If MyDoorRef.GetOpenstate == 3MyDoorRef.SetOpenState 1 Basically, I'm not sure why the player is freezing versus the game. I have not experienced that kind of behavior before. Perhaps that vault door needs to be activated versus having its open state changed. Link to comment Share on other sites More sharing options...
falloutperson416 Posted July 18, 2010 Author Share Posted July 18, 2010 I removed the turrets already, and I still get the same problem. So it cant be that. Link to comment Share on other sites More sharing options...
pkleiss Posted July 18, 2010 Share Posted July 18, 2010 I just checked the vault gear door as its been a while since I worked with it. It does need to be activated as opposed to having its open state changed. So, try MyLink.Activate for both the enter and leave parts of the code, and loose the getopenstate command. Link to comment Share on other sites More sharing options...
falloutperson416 Posted July 18, 2010 Author Share Posted July 18, 2010 Hmm. Ya know what, i've desided to drop the automatic opening. It's a safe after all. So... do I just link the little control console to the Gear Door, or what? Thank you for your help with the script! So now, if you could just help me finish up the door activating consol. Thank you so much man, - Falloutperson416 Link to comment Share on other sites More sharing options...
pkleiss Posted July 19, 2010 Share Posted July 19, 2010 basically, its just like using any switch to activate something else. Put in the vault gear door control switch, make it persistent and using the door's activate parent tab, link it to the switch. Then check the box that says something like "Parent Activate Only" so that the door can only be activated by the switch, and not by the door itself. You may want to place a second linked door control panel in the vault room itself in case the player activates the outer switch, then run inside. This would trap them inside forever without the inside switch.. Link to comment Share on other sites More sharing options...
falloutperson416 Posted July 19, 2010 Author Share Posted July 19, 2010 Alright! I got it working. Thank you so much friend! Link to comment Share on other sites More sharing options...
Recommended Posts