SupermassiveBlackHole Posted December 25, 2010 Posted December 25, 2010 (edited) Hi, I'm trying to make a script on a switch that opens a secret door when activated. I'm using references. The script seems fine to me, and will save, but in game, when I activate the switch in-game it doesn't open the door. Here's the script: Quote scn 000ACTIPBSSecretSwitch01SCRIPT Begin OnActivate if aaaACTIPBSSecretDoor01REF.GetOpenState 0 aaaACTIPBSSecretDoor01REF.SetOpenState 1 EndifElse aaaACTIPBSSecretDoor01REF.SetOpenState 0 EndifEnd Thanks for reading. Kudos will be rewarded to whoever fixes this for me :thumbsup: Edited December 25, 2010 by xiiROSS
Interfer0 Posted December 25, 2010 Posted December 25, 2010 Didn't I already answer this in another thread. You need to remove your first endif, or else the ELSE will not run, and will not open the door.
SupermassiveBlackHole Posted December 25, 2010 Author Posted December 25, 2010 On 12/25/2010 at 10:36 PM, Interfer0 said: Didn't I already answer this in another thread. You need to remove your first endif, or else the ELSE will not run, and will not open the door. Cheers. That was a different script, for a lightswitch. Quite similar though, but I am a numpty with scripting. Thanks for responding, kudos to you.
Recommended Posts