Need Scripting Help

Discussion in 'Halo and Forge Discussion' started by KeeLoker, Feb 12, 2017.

  1. KeeLoker

    KeeLoker Legendary
    Wiki Contributor

    Messages:
    277
    Likes Received:
    375
    So I've been working on a linear infection map for a while and want to include a section where the survivors need to search for a key like object to repair a switch to progress. Problem I've been facing is I want the location of the key to be random every round between a total of 4 locations. I've tried coming up with a few ways and I used one way involving toggling power states that did end up working but I was wondering if there was a way to use the number change script to do this or just an overall easier way to script this random interaction. I'm not the best with scripting so help would be appreciated.
     
  2. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    there is an option in the number change event to make the number chnaged to, random. If you want it to randomly choose 1-4, set the value as 4.

    Then, if you have 4 potential locations, I think you might actually need 4 key objects, each in their spot.

    As round starts, have a script brain change the global variable using Number Change event and then make it random as above.

    Each key would be set to spawn in ONLY when the number in this global variable is set to its number. If you want a nav point to also show up, do another script to change navpoint of This on Spawn event.

    GOOD LUCK!
     

Share This Page