Halo 5 Scripting Help? (Multiple Looping)

Discussion in 'Halo and Forge Discussion' started by RaspberryMuffin, Mar 28, 2016.

  1. RaspberryMuffin

    RaspberryMuffin Legendary

    Messages:
    2
    Likes Received:
    1
    I've been trying to make a moving platform system where there are multiple platforms moving in the same pattern in an infinite, automatic loop.
    I use timers to do this, I can create a loop fine with just one platform, but I find problems making other platforms follow behind it in the exact same way. Here is my script for the first platform.

    SCRIPT 1

    • CONDITION: Timer
    • Initial Delay: 0.00
    • Repeat Timer: 37.50
    • ACTION: Move
    • X: -47.50
    • Time: 10.00
    SCRIPT 2
    • CONDITION: Timer
    • Initial Delay: 10.00
    • Repeat Timer: 37.50
    • ACTION: Move
    • X: -95.00 Z: -95.00
    • Time: 20.00
    SCRIPT 3
    • CONDITION: Timer
    • Initial Delay: 30.00
    • Repeat Timer: 37.50
    • ACTION: Move
    • Z: -25.00
    • Time: 7.50
    SCRIPT 4
    • CONDITION: Timer
    • Initial Delay: 37.50
    • Repeat Timer 37.50
    • ACTION: Position Reset
    • Time:0.00
    This creates a perfect loop for my platform. However I want more platforms moving in the exact same path and speed, but slightly behind each other. This would create the illusion of infinite platforms moving in a conveyor belt-like motion and formation.

    I have tried making another platform in the same location as the first one, but with a Repeat timer of 40 seconds, so that it starts slightly later than the first platform, and this works for the first loop, but after that their timelines become too out of sync and they become inconsistent. I want a way to make all the platforms stay in sync.

    Id really appreciate it if any good scripters could help me out here, as this is the only thing stopping me from finishing my map. I can give more information on request.
     
  2. Rabid Hogs

    Rabid Hogs Legendary
    Senior Member

    Messages:
    77
    Likes Received:
    130
    If you need the second block to move 1 sec. after the first, add 1 sec. to all the initial delays.
    The second blocks initial delays would be:
    1.00
    11.00
    31.00
    38.50

    I gave 1 sec. as an example. Depending on how big your objects are and how fast they're moving would determine the necessary time. Try playing around with it to find the optimal time. Once you do, add it again onto each next piece. So in the 1 sec. example it would be:
    Block 3 initial delays:
    2.00
    12.00
    32.00
    39.50

    You can continue this with however many blocks you need.
     
    Sn1p3r C likes this.
  3. Doctor Squishy

    Doctor Squishy Legendary

    Messages:
    155
    Likes Received:
    214
    Rapid Hogs is correct, you would want to only change the initial delay for the blocks. The repeat timers for a script do not officially start until the initial delay time finishes in said script.

    Also a quick heads up, you may notice a slight 'bounce' in the block when it is moving kind of like this: http://imgur.com/tqjcaWk

    I have been having issues on keeping two walls that move down in sync. Even if one time it is perfect but then the other times it becomes out of sync and 'bounces' like you see in my GIF. You will notice this bug when the objects sit next to each other. I have been working on trying to smooth it out with different ways to script, but I still have not found a sound solution.
     
  4. RaspberryMuffin

    RaspberryMuffin Legendary

    Messages:
    2
    Likes Received:
    1
    This worked! I didn't think of trying it like that, so thank you! I added an increment of 3 seconds to every initial delay, the loops work fine, but rarely the platforms sometimes go off course for some reason, but it's alright because they reset themselves eventually and loop normally


    Unfortunately this is also a problem I often have with moving objects, including this one. I think it's because the game has some lag problem processing all the scripting, it would be great if 343 managed to fix it somehow.
     
    Doctor Squishy likes this.

Share This Page