How to script teleporter?

Discussion in 'Halo and Forge Discussion' started by ItzClementine, Jun 15, 2017.

  1. ItzClementine

    ItzClementine Legendary

    Messages:
    26
    Likes Received:
    2
    How to script a teleported where when the game starts, teleported has delay timer before spawning on the map, how do i do that?
     
  2. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    script brain that despawns objects with label User Zulu on round start (which also affects match start)

    Add label zulu to teleporter

    script on teleporter itself:
    on timer, initial (x amount of time), repeat zero
    spawn, force

    done. (unless you want it to disappear again, in which case you add a wait action, then despawn action to same script)

    Good luck!
     
  3. ItzClementine

    ItzClementine Legendary

    Messages:
    26
    Likes Received:
    2
    I just did that and it still spawning in beginning when it not post to spawn early in game :(
    --- Double Post Merged, Jun 15, 2017 ---
    I put the brain script thingy label Zulu, condition round event start, teleporter label Zulu, script condition timer check, initial 30 seconds, repeat 0, force spawn, I did all that and it still not having delay spawning
     
  4. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    make sure scrpting is turned on for the map

    increase the time delay for the timer

    or change on timer to on round start, then inster a wait action before the spawn action.

    this should work. I do it all the time.

    I test zulu despanws on start with a switch wired to do the same. That way you can test whether working while in Forge.
     
    #4 ExTerrestr1al, Jun 15, 2017
    Last edited: Jun 15, 2017
  5. ItzClementine

    ItzClementine Legendary

    Messages:
    26
    Likes Received:
    2
    Omg it worked ugh THANK YOU SO MUCH! YOU SAVED MY MAP!!
     
  6. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    haha... you're welcome. This is some pretty basic stuff but I'm glad it helped :)
     
  7. ItzClementine

    ItzClementine Legendary

    Messages:
    26
    Likes Received:
    2
    Yes! Also do you know how to script a gate door to make it go up and down?
     
  8. ItzClementine

    ItzClementine Legendary

    Messages:
    26
    Likes Received:
    2
    Ok for some reason the problem came back again and teleport keep spawning in beginning idk why
     
  9. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    weird. please send me a private message with a link to the shared file and I will take a look at it tonight if at all possible.

    I will not share the map with anyone else...
     
  10. ItzClementine

    ItzClementine Legendary

    Messages:
    26
    Likes Received:
    2
    What is your gamertag I will add you
     
  11. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    send it here, though. But my gamtertag is also in my sig ;) Note, I play PC only except for the rare occasion I can play my son's xbox.
     
  12. ItzClementine

    ItzClementine Legendary

    Messages:
    26
    Likes Received:
    2
    Ok cause I have Xbox, and i been trying all morning and it still not working sigh
     
  13. Yumudas Beegbut

    Yumudas Beegbut Legendary
    Wiki Contributor Senior Member

    Messages:
    393
    Likes Received:
    352
    Man, I haven't checked the forgehub site in a while. If you still need help with this you can try something like this:

    Code:
    Condition: Round Event, Event=Start
    A1: Despawn OBJECTS=[THIS add]
    (or OBJECTS=[Label add user:zulu] if you add the script to a remote object)
    A2: Wait 30.00  (or however many seconds after players spawn)
    A3: Spawn, Force=On
    
    There's 2 events you can use so that your objects will despawn at the start of each round:
    • Round Event, Event=Start - triggers each round when players spawn and the clock starts
    • Spawned - triggers when objects spawn and animations start
    You can also use Match Start, Timer Check or Round Time.
    • Timer Check 0.00 is the same as Match Start & they both only trigger at the start of the 1st round (same time as Spawned)
    • Round Time triggers whenever the game clock is at the specified time, which would only work for some game setups, depending on what the round time is set to
    If you do use the Spawned condition to despawn objects earlier, you need to keep the script from firing again when the object spawns... Set the script property "Condition Interrupt" to Off, then add this 4th action:

    Code:
    A4: Wait 0.10
    
     

Share This Page