Death trigger Question

jim

New Member
Reaction score
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
 

X-maul

AKA: Demtrod
Reaction score
201
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).
 

jim

New Member
Reaction score
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
 

X-maul

AKA: Demtrod
Reaction score
201
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 :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top