• 0

    posted a message on [Solved] Finding Teams Using Triggers

    Thanks again, I did a counting system and works perfect. Finally I have finished the game mechanics, and I have 5 days off to work on balance. :)

    Jonesy

    Posted in: Triggers
  • 0

    posted a message on [Solved] Finding Teams Using Triggers
    Quote from Kueken531: Go

    There is a group function called Lobby Team or something, which returns a player group containing every player in the respective team set up in the game lobby. Does not work when testing the map from the editor, though (since you never enter the lobby in this case)

    Thanks this worked! Got all of it working, except showing the progress bar (but I will fix this soon). There is also now a problem I didn't think of, I am using the events Enter/Leave distance from unit. So if 2 units come in and 1 leaves it turns the progress off. Can anyone think how I can fix this?

    Here is the trigger for starting the control point system: Start Trigger

    And here is the trigger for Ending it:

    Start Trigger

    With this when using a single unit it works fine. However my game is a 3v3 game and if 2 units enter and one leaves it will stop working. How would I go about fixing this problem? Thanks again.

    Jonesy

    Posted in: Triggers
  • 0

    posted a message on [Solved] Finding Teams Using Triggers

    I don't think I can use that, the only place I found I can out it is in the group section. Which gives;

    Player Group - Add player 2 to (Allies of player 1)

    But the way I am trying to do this trigger I need it to detect weather he is a ally or enemy. So , if Player 2 is Ally of player 1 add to group Team 1. I need something along them lines. Or if someone could tell me another way I could do it.

    Jonesy

    Posted in: Triggers
  • 0

    posted a message on [Solved] Finding Teams Using Triggers

    Facepalm* how did I miss that. Thanks I will try it when I get in. I am new to triggers so I was searching for key words like "Team" since I didnt know what it would be. Thanks again, it should work perfect.

    Jonesy

    Posted in: Triggers
  • 0

    posted a message on [Solved] Finding Teams Using Triggers

    Ok, so I am making a map which will be using control points and I want these control points to be team based. I have a good idea how to do the general control points system but I do not know how I can find the player's team. I tried putting player 1-3 as one team and 4-6 as another but they were not always the same team. I have been scouring the internet to try and find a solution (hopes he didn't miss one on Google) but to no prevail. Can anyone think of a trigger that can allow me to do this or a trigger that can detect teams. I would be very grateful if someone could find/ show me one.

    Also if you have an easy idea for the control points system don't be shy to add it. I am going to try and make using an integer which gets higher or lower (depending on team) which shows how close it is to being captured. This will be using triggers which turn on other triggers to start the counting. The units will be heroes if that helps at all, however i have not used this in my plan.

    P.S I found a video on someone else doing this but after looking at it he only had 2 players so he didn't need to bother with teams. I also feel bad that my first post on these forums is a help me I am stuck question but to be honest I don't think I can help anyone yet. xD Thanks for taking the time and reading my topic.

    tldr: I need a trigger which can detect which teams players are on and categorise them into player groups.

    Jonesy

    Posted in: Triggers
  • To post a comment, please or register a new account.