Need help with simple scripting problem

Discussion in 'Halo and Forge Discussion' started by Snooflaes, Sep 10, 2016.

  1. Snooflaes

    Snooflaes Legendary

    Messages:
    3
    Likes Received:
    0
    Hey, I just started messing with making maps in forge (on pc) and am having some trouble with what should be a simple script command. I want it so two objects (a sound and a weapon) move when I press a button. So I scripted the following:

    On an Interactive Switch (1x1x2; keypad)
    <condition> On Interaction
    <action> Message Send
    Channel: Charlie

    And on my two objects:
    <condition> On Message Received
    Channel: Charlie
    <action> Move: Offset
    (The values I need to get the objects where I want here)
    Local movement is checked

    When I tested it, it worked fine and exactly as I intend. So reset object positions in the menu, saved and quit.
    Now, when I go to the map in a custom game (or even in forge) the objects have moved as if someone had already pressed the button and set the scripts into action, even though no on has. Does anyone know why this is happening? I can't for the life of me figure it out and have been working at it for quite a while now.
     
  2. Egggnog

    Egggnog Game Crashers

    Messages:
    267
    Likes Received:
    331
    First try moving the objects back to their original positions manually, then save. Otherwise, you're having the same glitch I had a while back. If that's the case, write a "despawn" or "position/rotation" reset on match and round start scripts. If you use a despawn, you also need to set up a way for those objects to respawn
     
  3. Snooflaes

    Snooflaes Legendary

    Messages:
    3
    Likes Received:
    0
    Tried the position/rotation reset on match and round start scripts and it didn't work. I just got frustrated and gave up, thanks for the reply though, its a shame scripting seems so buggy.
     
  4. Egggnog

    Egggnog Game Crashers

    Messages:
    267
    Likes Received:
    331
    Send me an invite if you're on. GT is ExpiredEGGGNOG.
     
  5. Snooflaes

    Snooflaes Legendary

    Messages:
    3
    Likes Received:
    0
    Oh nah its cool, I just made an entire different thing to accomplish what I wanted and I'm satisfied (maybe a little more so than what I was trying to do before). Thanks for the offer though, really do appreciate it.
     

Share This Page