Ga naar de inhoud
Rel-bits

Rel-bits

  • Thuis
  • Nieuws
  • Gidsen
  • Videogidsen
  • Patch-opmerkingen
  • Misbruik melden
  • Toggle zoekformulier

From The Depths – How to Make an ACB Toggle/Switch

Geplaatst op 01/15/202309/09/2023 Deur Lurakin Geen reacties op From The Depths – How to Make an ACB Toggle/Switch
  • Titel: From The Depths
  • Releasedatum:
  • Ontwikkelaar:
  • Uitgever:
Information about From The Depths is still incomplete. Help ons alstublieft de details van het spel hiermee in te vullen contactformulier.

Want to turn a light on and off with the same button? Fold wings back and forth? Submerge and Surface?

This guide shows the way I know to make a toggle/switch that lets you change from one state to another at the press of a single button.

Vrijwaring

This is one way I know of creating a toggle/switch using ACBs. If there are alternative and/or easier ways, I haven’t been able to find them, so if you know of other/easier ways, laat dan een reactie achter.

Flowchart

I will use the example of turning a light on and off (setting intensity to 30% en 0% respectievelijk).

The actual toggle itself will need at least 9 ACBs. These won’t do anything on their own, but we will get to that.

Here’s a flowchart to hopefully aid in explaining how this work.

MSwitch

MSwitch (Master Switch) is the first ACB. Triggering it is essentially the flicking of the light switch.

ACB Master

Replace the Prefix with something relating to the function this Toggle will affect. In ons geval “Light MSwitch” will work. If we then use an ACB Controller we can create a button and set its Search Filter to “Light MSwitch”.

Condition:

Set to Interactie unless you want it to trigger through other events. Setting it to Interactie is in my experience a good way to ensure it does not trigger unless it gets executed.

Minimum Activation Interval:

Set this to 0.5 to prevent repeated activation (you might get away with setting it as low as 0.2, but I stick with 0.5).

Note that all of the other ACBs going forward will have their Condition set to Interactie, so their section will only include the Condition if there is something unique to be set there.

Doel & Actie:
  • Doel ACBs
  • Set the Action to Execute and put “Initiator” into the Search Filter.

Affect Range depends on how far away you place the other ACBs. If you place them closer, you can reduce the Affect Range. This will prevent other nearby Toggle/Switch Circuits from being triggered by this one.

State 1 & 2 (Initiators)

The next two ACBs will be beginnings of the two separate chains of ACBs that will make this toggle work. They are nearly identical in setup.

Let’s start with the Master window this time.

Name one of the two “State 1 Initiator” and the other “State 2 Initiator”. De “Initiator” is the important part here, as the MSwitch is set up to search for that word.

Uitzetten een of these two ACBs.

This is vital, as the way the Toggle works is by alternating which of these two ACBs is enabled.

Doel & Actie
  • Set Target: ACBs
  • Set Action: Execute
  • Search Pattern:
    • “State 1” voor State 1 Initiator
    • “State 2” voor State 2 Initiator

State 1 & 2 Actie

These two ACBs are the ones you will configure to trigger each of the two states you’re trying to toggle/switch between. So one of these will trigger the light to turn on, the other will turn it off.

ACB Master

Hetzelfde als voorheen, the names are identical except for the numbers. Ensure those are set correctly.

Doel & Actie

Several Options:

  • Set Target to ACBs. Set Search Pattern to an ACB you want to trigger. (In our example, the ACB is named “Light On” and will turn the light on when triggered by this “State 1 Actie” ACB.) The advantage of this method is that this single ACB can trigger groups of others as long as they are named in such a way that the search filter can affect them.
  • Or you can directly set this ACB to do the action you want it to (such as turning the light on.)

Het belangrijkste is – Wat dan ook State 1 Actie triggers needs to be different from State 2 Actie. Bijvoorbeeld, State 1 Action will turn the light ON, while State 2 Action will turn the light OFF.

State 1 & 2 Disabler

These next two ACBs will disable their respective State Initiators after a short delay.

ACB Master

You know the drill, change the number for State 2.

Condition

Effect Delay: Set this to 0.1s

Doel & Actie
  • Doel: ACBs
  • Actie: Uitzetten
  • Search Filter: State 1 Initiator (or State 2 respectievelijk)

State 1 Primer

This one is triggered as part of State 1. It will enable the State 2 Initiator.

ACB Master

Condition

Effect Delay: Set this to 0.1s

Doel & Actie
  • Doel: ACBs
  • Actie: Inschakelen
  • Search Filter: State 2 Initiator

State 2 Primer

This one is triggered as part of State 2. It will enable the State 1 Initiator.

ACB Master

Condition

Effect Delay: Set this to 0.1s

Doel & Actie
  • Doel: ACBs
  • Actie: Inschakelen
  • Search Filter: State 1 Initiator

My Prefab

Since this whole assembly is made up of 9 ACBs, it does take up some space. Echter, by moving the ACBs closer together and reducing the Affect Range of each block to the minimum to communicate with every required block, the assembly can fit into a 3x2x2 footprint.

Note that I used Mimics and Decorations to make the thing look a little neater.

As for using multiple Toggles, they can be placed close to each other, Maar for my particular Prefab Toggles need to be spaced with 1-2 blocks between them as shown below.

The footprint for my Prefab includes these boundaries. The empty spaces can overlap, but need to be clear of block from other Toggles.

Voor zover ik weet, it’s not possible to share Prefabs directly, but I have uploaded my Prefab as a Vehicle to the Workshop. You can spawn it and create your own Prefab from it.

Click here for my Prefab

Dat is alles wat we vandaag hiervoor delen From The Depths gids. Deze handleiding is oorspronkelijk gemaakt en geschreven door Lurakin. Voor het geval we er niet in slagen deze handleiding bij te werken, U kunt de laatste update vinden door dit te volgen link.

Als u van mening bent dat de inhoud van deze site uw rechten schendt, inclusief uw intellectuele eigendomsrechten, neem dan direct contact met ons op via ons contactformulier.
Gidsen Labels:From The Depths

Bericht navigatie

Vorig bericht: Donkere messias van macht & Magie – How to Enable Windowed Mode on Start up
Volgende bericht: How to Fix Impaler Crashing, Crash bij lancering, en bevriezingsproblemen

Geef een reactie Reactie annuleren

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

  • Titel: From The Depths
  • Releasedatum:
  • Ontwikkelaar:
  • Uitgever:
Information about From The Depths is still incomplete. Help ons alstublieft de details van het spel hiermee in te vullen contactformulier.

Vrijwaring

Alle geciteerde inhoud is afgeleid van hun respectieve bronnen. Als u denkt dat wij uw inhoud zonder toestemming hebben gebruikt, Zorg ervoor dat u ons bereikt en wij zullen het serieus nemen.
  • Over ons
  • Neem contact met ons op
  • Privacybeleid
  • Servicevoorwaarden

Auteursrecht © 2025 Rel-bits.

Aangedreven door PersBoek Nieuws WordPress thema