1. #1

    How to make a use button?

    How can I make it that when I press Y while in a certain area the wooden planks break?
    Share this post

  2. #2

    Re: How to make a use button?

    Use a button card "Y". Target a break event, which targets the planks. There are several ways of making it work in one area. You basically have the button card disabled and target it with state events to enable or disable it. The most efficient way (but not the simplest) is to use a circuit that shows how to have custom cameras in vertain areas. I'll find the link and add it in.....

    https://docs.google.com/folder/d/0B4...L4C4u9SuqYUDGE

    Replace the crash event with an interval trigger set to 1 tick. Replace the camera event with a state event. "ON" in areas you want it, "OFF" in areas you dont.
    Share this post

  3. #3

    Re: How to make a use button?

    Did he edit his post? Because all I'm seeing is "Press Y to make planks break", nothing about a crash camera :/.

    Y toolcard
    On hit > Set Value to 1 > Variable Data Source (1)
    On Inactive > Set Value to 0 > Variable Data Source (1)

    At the spot you want it to work, place an Area Trigger
    On Active > Set Value to 1 > Variable Data Source (2)
    ::: Maybe also set this area to disable the Y button, ya, if you need it to still bail or do something else :::
    On Inactive > Set Value to 2 > Variable Data Source (2)

    Y button press > Impulse Delay 1 tick > Generic Filter: If VDS (1) = VDS (2) TRUE > Break event

    ==============
    When both Variables are same, trigger happens. Else Variables are 1 and 2 so not same.
    Share this post

  4. #4

    Re: How to make a use button?

    Originally Posted by Jolan
    Did he edit his post? Because all I'm seeing is "Press Y to make planks break", nothing about a crash camera :/.
    Which would be why I explained how to adapt it to hi sneeds.
    Share this post

  5. #5
    Blastergamer's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Rocking Trials Country
    Posts
    2,539

    Re: How to make a use button?

    You need an area trigger. Uncheck "disable after hit" to have impulses constant while you're in the area, while in the advanced triggers settings - "on active" should be state event "on" enabling the Y button trigger, and "on leave" (NOT "inactive") disabling it while the Y button trigger is not enabled and "on press" targeting the break event which breaks the wooden plank.
    Share this post