Demeggy Posted September 19, 2009 Share Posted September 19, 2009 Lo all, I'm trying to get a sequence working in my mod that'll do the following in order; 1) Have 2 doors initially disabled 2) when a player activates a lever, the doors 'enable' thus magically appearing where they weren't before through the following script; ScriptName LCoGlockdownOff Begin OnActivate emergencysiren.disable powerup.enable setStage LCoG 90 powerroomlight.enable lcoglink1.enable lcoglink1a.enable End 3) player enters magicdoor 1 4) player comes out of magic door 2, hits trigger area and runs the following script; scn magiclinkdoorCloseSCRIPT short doOnce begin onTriggerEnter player if doOnce==0 lcoglink1.disable lcoglink1a.disable set doOnce to 1 endif end Whenever I try to enter the trigger, the doors remain 'visible' (to my understanding, 'enabled'), despite me having called on the script to ensure they're 'disabled'. What be I doing wrong? :S Thanks Link to comment Share on other sites More sharing options...
BadPenney Posted September 19, 2009 Share Posted September 19, 2009 Try placing a DoOnce on your first script as well. You tell it to start enabling the doors OnActivate, but you don't tell it to stop. Link to comment Share on other sites More sharing options...
Demeggy Posted September 19, 2009 Author Share Posted September 19, 2009 Try placing a DoOnce on your first script as well. You tell it to start enabling the doors OnActivate, but you don't tell it to stop. Aaaah, I did think this mightve been a possibility you know! But I didn't get it to work first time round. probably a silly syntax error, I'll give it a shot and report back. Thanks man :) Link to comment Share on other sites More sharing options...
gsmanners Posted September 19, 2009 Share Posted September 19, 2009 It could be that the player enters the trigger area before the player stops moving through the load door (if that makes any sense). Maybe you need to check IsPlayerMovingIntoNewSpace on your trigger box. Link to comment Share on other sites More sharing options...
Demeggy Posted September 19, 2009 Author Share Posted September 19, 2009 Cheers guys, but the first resolution helped :) Thanks man Link to comment Share on other sites More sharing options...
Recommended Posts