1. #1

    OPE and toggling

    Hello all I've ran into a problem when using OPE to rotate and object. I used this tutorial.https://docs.google.com/drawings/d/1...oNRAaUqmw/edit

    For those who may not want to click on the link essentially you have a curved data source, OPE, and an interval trigger. The problem is that the object spins whenever you are just playing the track or when you reset a checkpoint, but I only want it to spin once you reach a certain point on the driving line. I've been messing around with different things trying to figure it out and being very new to track building I can't figure out how to make this possible.

    Is there anything in the editor that can act as a toggle switch? For example with a sound event you can have it set to toggle and it will toggle the source sound on. I was wondering if I could keep the OPE disabled (so the object doesn't spin) but then have it activated by an area trigger which sends an impulse to some sort of toggle switch. Is there anything in the editor like this?

    Or maybe there is a much simpler way to fix my problem that I just may not know about?

    Sorry if this may not make sense to some of you, I've tried my best to explain the problem. If you need any clarification on the problem I am having please feel free to ask me to explain it more.

    Any help is appreciated,
    Thanks!
    Share this post

  2. #2
    TeriXeri's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,163


    -Finally we have the “state event.” By this point we’ve seen quite a few items in the editor that have an “enabled” checkbox. The state event affects that checkbox. We have the same type, reset and select options we’ve seen a lot of in event properties. In this case, “off” means the checkbox is unchecked, “on” means it is checked and of course toggle simply changes it from its current state.

    State event is useful for enabling/disabling things, just keep in mind some code cards use slightly different settings when it comes to resetting checkpoint/track, reading the little text when hovering the reset checkboxes helps explain the differences.

    Also keep in mind for OPE, there are usually 3 or more seperate cards, the data source will keep ticking (when not disabled) even if the OPE card itself is like disabled and could mess up the movement, so keep that in mind when working with code groups.
    Share this post

  3. #3
    Ah thank you. I really need to keep re-watching those videos lol.
    Share this post

  4. #4
    Also if anyone else reads this with a similar problem, as terixeri said, the data source will keep ticking and the rotation with just enabling the OPE was messed up. So my solution was too have the state event affect the data source and the interval trigger and it works perfectly.
    Share this post