Death trigger Question

Discussion in 'Starcraft 2 (SC2) Editor Help' started by jim, Apr 11, 2014.

  1. jim

    jim New Member

    Ratings:
    +0 / 0 / -0
    Hey,

    So I am trying to create an arcade game that there are neutral objects(unit) that move on their own, and each player has to avoid them as they travel through a maze. Each player does not attack, and neither do the objects(unit).

    I want to make the players unit die/burrow when they run into an object(unit).
    I figured its a comparison function of "players location == object location" to trigger death sequence

    However I dont know how to set this up, and also what the event would be that triggers the function

    Thank you for your help
     
  2. X-maul

    X-maul AKA: Demtrod

    Ratings:
    +200 / 0 / -0
    The easiest way to do this, would most likely be to have a behavior, which would launch a search effect every 0.0165 sec, and have it kill all enemy units (remember to make exclude itself).
     
  3. jim

    jim New Member

    Ratings:
    +0 / 0 / -0
    Thank you, but do you know how I can set up each player as a variable in an array variable? would it be a player group or units?

    I am sorry for all the questions, I am still figuring this program out
     
  4. X-maul

    X-maul AKA: Demtrod

    Ratings:
    +200 / 0 / -0
    Depends on what you want to use it for, but a player is basically just a number, so you can store players (as numbers) in an integer variable.

    You can use Picked Player, Triggering Player and so on when setting the variable :)
     

Share This Page