Last Man Standing Script Help

Discussion in 'Halo and Forge Discussion' started by KeeLoker, Mar 18, 2017.

Tags:
  1. KeeLoker

    KeeLoker Legendary
    Wiki Contributor

    Messages:
    277
    Likes Received:
    375
    So I've noticed that on infection maps that utilize custom waypoints, the last man standing waypoint doesn't appear when it should. I've heard it's just a bug with the scripting interfering with the waypoint but idk how to fix it. I've attempted to create a script to basically be a substitute for that issue but the problem is I am not the best at scripting so I'd like to see if what I put together would work.
    [​IMG]
    So this first script will basically count all the people on Red Team (Survivors) and keep that value on the Alpha channel at the start of every round. At least...that's what I'm hoping it does.
    [​IMG]
    This next script will check to see when the number of people on red team (survivors) drops down to 3 or less (On my map, there are 3 last man standing). When this happens, a nav marker will appear above anyone who is a player not on blue team and dead saying "KILL". I set it so the waypoint will only appear for people on blue team (infected).

    Please let me know if this will work and if not, how I can fix it so it does work. Thanks!
    --- Double Post Merged, Mar 18, 2017 ---
    I just noticed that the first script would only check the number of people on red team once at the start of each round. Do I need to have a timer being going on to have it periodically check the amount of survivors still in the game? I'm clueless right now...:(
     
  2. ArturBloodshot

    ArturBloodshot The Architect
    Forge Critic Senior Member

    Messages:
    320
    Likes Received:
    343
    Hey! Yes, you will need a heartbeat script to periodically check players. You almost got it but here is how you do it:

    WHEN
    Message Received: Hotel (Heartbeat)

    DO
    Number Change:
    Scope: Team
    Channel: Alpha
    Team Add: defenders

    Set
    Object Count:
    Players add
    Team include: defenders
    Dead exclude
    Objects exclude

    WHEN
    Number Check:
    Scope: Team
    Channel: Alpha
    Team add: defenders
    Less/equal than 3

    DO
    Nav Marker add
    Players: Team add: Team include: attackers, dead exclude
    Targets: Team add, Team include: defenders, dead exclude

    I think there is acually a glitch with the scripted nav markers, so I really don't understand what's going on with the real Nav Point inside the Infection gametype. Maybe it's set Off, you should probably check that--> Nav Point: On, Last Man Squad: 3
     
    Pleas Sir69 and KeeLoker like this.

Share This Page