so basically i want to have a ray shield door kinda thing (like from star wars) and i want to be able to spawn into a game and the shield/door isn't there but when i exit the room i want to be able to push a button and close/appear it behind me and push that same button and the door to open/disappear if that makes sense. thanks and i hope some one can help me out ill be waiting. ~ PeptiCargo036
Scripts on the "ray object": Condition_1: On Power Channel (A): ON Action_1: Spawn (Force: ON) Condition_2: On Power Channel (A): OFF Action_1: Despawn(THIS) Scripts on the scripting terminal: Condition_1: On Round: Start Action_1: Set Power Channel (A): OFF Conition_2: On Interacted Action_1: Toggle Power Channel (A) This way the power channel A gets toggled via an interaction on the terminal. The interaction turns the power channel A either off or on, causing the object to despawn/spawn.
you can alternatively set the script action to Toggle the channel... since if it is on, the only thing you'll ever want to do is toggle it Off. that eliminates one script. BUT, remember you'll need to despawn the thing on match start, or it will be there blocking you. (you'll be in jail until someone comes to open the door ) if you have other objects on your map that will need to despawn on Round start, I suggest setting them all to use the same label "User Zulu" is my preference, and then use a script brain as follows: Script Brain: Script1 - on Round Start, despawn Objects with User Zulu label. That way, you'll avoid using many many scripts, one for each item you wish to despawn on round start! good luck
glad it worked. another thought after actually looking at your screenshot, is that if is less expensive in terms of # scripts to label all of those shields with the same label, and make all of them despawn when your switch is activated, by means of telling it to despawn all objects with that label. Unfortunately, there is no analog for spawning back in... so each of your shield doors WILL need at least one script telling it to spawn in on a message receive or something that correlates to a message being received. (there are even more ways this oculd be done, but we'll save those for the unlikely event that you start running out of scripts or something)