KnowMadic Posted June 21, 2012 Share Posted June 21, 2012 (edited) Okay for my new mod I've decided to make the entrance room a detoxification room that when you enter the door to the base is locked and must be opened using a terminal. When you access the terminal you will have the option to "Begin detox" after selecting that the room gets flooded with gas and the Klaxon lights go off and after 3-5 seconds it all stops and the door to the vault opens. I know this is a handful to ask for and I will reward kudos and a place in the credit section of my mod. What I need:Make the door only operable by using the terminal.Make the Klaxon lights turn off after 4 seconds (Use script I provided)Make the room filled with gas (FXHeliosSteam) for 4 secondsMake the door unlocked after 4 seconds*Maybe* Make the player have the withdraw effect screen (Where you kinda fade a little and your vision is blurred) during the gassing Klaxon Light Scriptscn KlaxonLightsScript short state ; 0 = off, 1 = flashing begin OnLoad if state == 1 playgroup left 0 endif end begin onActivate if state == 1 set state to 0 playgroup backward 0 else set state to 1 playgroup forward 1 endif end begin gamemode if state == 1 if isAnimPlaying == 0 playgroup left 0 endif endif endI don't require you to solve all of those at once, any little bit helps. Edited June 21, 2012 by KnowMadic Link to comment Share on other sites More sharing options...
KnowMadic Posted June 23, 2012 Author Share Posted June 23, 2012 Bump Link to comment Share on other sites More sharing options...
Cyberlazy Posted June 24, 2012 Share Posted June 24, 2012 Well I hope you have some success because this idea sounds awesome.Some tips: Never 'delay' a player for visual effect reasons, Its cool the first time, its cool the second time, its annoying as hell the 100th time. Add in a console they can hack to 'bypass decontamination', for whatever lore reason you want (You suspect the decontamination is not really doing YOU any good, who cares about <Whoever it was protecting>) Second, I think you might want something likefloat xint stateif state < 10set x to x + getsecondspassedendifif (x > 4)set state to state + 1set x to 0if state == 0dostuffendif(more ifstate == somethings) endif It will increment state untill state gets to 10, every 4 seconds. if you want to just do something once, do it during one state and increment the state after its done, without waiting for the next 'timer' PS: Make sure to have a 'doonce' var that calls getsecondspassed for no real reason the first time your script runs, it seems to need to be called once as it will return a huge value on its first call (since its never been called before?) Link to comment Share on other sites More sharing options...
Recommended Posts