Jump to content

Disabling items


Demeggy

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...