Need Some Help Scripting

Discussion in 'Halo and Forge Discussion' started by Doctor Squishy, Mar 21, 2016.

  1. Doctor Squishy

    Doctor Squishy Legendary

    Messages:
    155
    Likes Received:
    214
    I am trying to script a Floor [128x64x4] to move down 128 Feet in 7 seconds then despawn, then Reset it's postion, and then spawn again. I am doing this in attempt to create a moving wall that constantly goes down making creating the illusion that you are going up. The wall just disappears and then never returns currently

    My Current Setup for the Floor [128x64x4]:

    <Condition> On Timer
    Initial Delay 0.10
    Repeat Timer 7.00​
    <Action> Move: Offset
    Z/Vertical -128.00
    Time 7.00
    Local Movement Off​
    <Condition> On Timer
    Initial Delay 7.10
    Repeat Timer 7.00​
    <Action> Despawn
    <Condition> On Destroyed/Despawn
    <Action> Move: Offset
    Velocity: Reset Off
    Time 0.00​
    <Condition> On Timer
    Initial Delay 7.10
    Repeat Timer 7.00​
    <Action> Spawn
     
    #1 Doctor Squishy, Mar 21, 2016
    Last edited: Mar 21, 2016
  2. Rabid Hogs

    Rabid Hogs Legendary
    Senior Member

    Messages:
    77
    Likes Received:
    130
    You said you need help, but didn't say what issue you're having. The scripting seems like it would work. Does it not?
     
  3. Doctor Squishy

    Doctor Squishy Legendary

    Messages:
    155
    Likes Received:
    214
    Ah yes sorry about that. The wall just disappears never to spawn again for some reason.
     
  4. Rabid Hogs

    Rabid Hogs Legendary
    Senior Member

    Messages:
    77
    Likes Received:
    130
    Wouldn't it be more effective to just reset the walls position? Resetting the position is like a teleport and it seems that that's the effect the spawn/despawn gives as well. Also since you're avoiding the spawn/despawn, you won't have to worry about the object coming back or not.
    Replace script 2 with:

    <Condition> On Timer
    Initial Delay 7.10
    Repeat Timer 7.00
    <Action> Position reset (I don't recall the exact name)
    Velocity reset: off
    Time 0.00

    And remove scripts 3 and 4.

    I believe what caused it to not respawn is that you ask for it to spawn at the exact time you ask it to despawn.

    There is or was a bug where despawned objects wouldn't respawn I believe, but that may be unrelated.
     
  5. Doctor Squishy

    Doctor Squishy Legendary

    Messages:
    155
    Likes Received:
    214
    Alright that seems to have worked really well now I just need to adjust it so it runs smoothly. Thank you for helping! :D
     
    Yumudas Beegbut and Rabid Hogs like this.

Share This Page