UglyDucklingStudios Posted December 13, 2012 Share Posted December 13, 2012 I'm trying to unlock a door with a trigger the player walks into. The code I have right now that I thought should work is this:scn 00kidsaroundthecornerthingbegin OnTriggerEnter Player 00RaiderDoor1.UnlockShowMessage 00TurningAroundTheCorner end If you know the reason why it isn't working it would be great if you could tell me. Link to comment Share on other sites More sharing options...
Mishaxhi Posted December 13, 2012 Share Posted December 13, 2012 Unlock is finicky. Try disabling the door and replacing it with an unlocked door. The trigger zone script looks fine. Link to comment Share on other sites More sharing options...
UglyDucklingStudios Posted December 13, 2012 Author Share Posted December 13, 2012 (edited) Okay well the disable/enable command isn't even working. scn 00kidsaroundthecornerthingbegin OnTriggerEnter Player ShowMessage 00TurningAroundTheCornersetStage 00F 1000RaiderDoor1.Disable 000RaiderDoor2.Disable 0 end and I tried to enable something else in a script and it just gives me errors and if I take out the line with enable or disable it lets me save it.... Any idea on why this is happening? Edited December 13, 2012 by UglyDucklingStudios Link to comment Share on other sites More sharing options...
Mishaxhi Posted December 13, 2012 Share Posted December 13, 2012 0 parameters at the end aren't needed. scn 00kidsaroundthecornerthing short doOnce Begin OnTriggerEnter Player if doOnce == 0 ShowMessage 00TurningAroundTheCorner setStage 00F 10 00RaiderDoor1.Disable 00RaiderDoor2.Disable set doOnce to 1 endIf end Link to comment Share on other sites More sharing options...
UglyDucklingStudios Posted December 13, 2012 Author Share Posted December 13, 2012 It still isn't letting me save the script even with your code. Link to comment Share on other sites More sharing options...
Mishaxhi Posted December 13, 2012 Share Posted December 13, 2012 Did you replace the spaces with tab indents?Are the doors persistent references? Link to comment Share on other sites More sharing options...
UglyDucklingStudios Posted December 13, 2012 Author Share Posted December 13, 2012 I replaced spaces with tab indents and set the doors to persistent references and it still doesn't work. Link to comment Share on other sites More sharing options...
Mishaxhi Posted December 13, 2012 Share Posted December 13, 2012 (edited) Is it definitely set to being an object script?I'm really not sure what could be going round, I've used the same script hundreds of times. Edited December 13, 2012 by Mishaxhi Link to comment Share on other sites More sharing options...
UglyDucklingStudios Posted December 13, 2012 Author Share Posted December 13, 2012 Yeah still wont work. Script is set to object. Not sure if it is my geck or not. I could try and verify game cache. But that might mess my mods up. Would have to make backups first. Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted December 13, 2012 Share Posted December 13, 2012 Don't start your ref names with numerical characters. Link to comment Share on other sites More sharing options...
Recommended Posts