1. #1

    Vibration for 5 secs

    How would I go about making something vibrate for just 5 seconds? I think I'd have to use the interval trigger in some way but I'm not certain.

    This is what I was thinking:
    1. A hit trigger (goes off once the rider touches a ramp) linked to a state event which could activate an interval trigger. (Do I need a state event? Could the interval trigger be activated directly from the hit trigger in some way?)
    2. Interval trigger would be set to go off every 5 seconds but a maximum of two times. This way after the first 5 seconds, another impulse would be send out to toggle the vibration off. The interval trigger will be turned off by default.
    3. Interval trigger is linked to a state event, which is set to toggle. State event is linked to vibration event (From what I can see, the only way to use vibration events is to use state events to turn them on?) The vibration will be turned off beforehand.

    So vibration off, vibration on for 5 sec, vibration off, intervals stop.
    Would this work?
    Share this post

  2. #2
    sipe's Avatar Trials Developer
    Join Date
    Dec 2012
    Location
    Helsinki, Finland
    Posts
    455

    Re: Vibration for 5 secs

    Originally Posted by OmegaRob3rt
    How would I go about making something vibrate for just 5 seconds? I think I'd have to use the interval trigger in some way but I'm not certain.

    This is what I was thinking:
    1. A hit trigger (goes off once the rider touches a ramp) linked to a state event which could activate an interval trigger. (Do I need a state event? Could the interval trigger be activated directly from the hit trigger in some way?)
    2. Interval trigger would be set to go off every 5 seconds but a maximum of two times. This way after the first 5 seconds, another impulse would be send out to toggle the vibration off. The interval trigger will be turned off by default.
    3. Interval trigger is linked to a state event, which is set to toggle. State event is linked to vibration event (From what I can see, the only way to use vibration events is to use state events to turn them on?) The vibration will be turned off beforehand.

    So vibration off, vibration on for 5 sec, vibration off, intervals stop.
    Would this work?
    There lots of ways to do it obviously. Here is one example:

    You need:
    - Trigger (any you like)
    - Two state events
    - Impulse delay filter
    - Controller Rumble

    Properties:
    - State Event #1 = on
    - State Event #2 = off
    - Impulse Delay Filter = 5 sec
    - Controller Rumble, Enabled = off

    Setup:
    1) Trigger impulse target to State Event #1
    2) State Event #1 target to Controller Rumble
    3) Chain impulse from State Event #1 to Impulse Delay Filter
    4) Set Impulse delay filter target to State Event #2
    5) Finally State Event #2 target to Controller Rumble

    Everytime you get impulse from the trigger you will get 5 sec of Rumble.
    Share this post

  3. #3

    Re: Vibration for 5 secs

    So in your method I could do it without the need for an interval trigger in between?

    I haven't used the delay impulse filter before but it seems pretty self-explanatory. It literally just delays the impulse by any amount of time you set?

    I'll try that out, it seems a lot more efficient than the way I was trying, thank you!
    Share this post