How to end deathmatch trigger???

bboykonjo

New Member
Reaction score
1
In my map every 5 mins there is a death match, I have already triggered how to transport them to the arena but have trouble in transporting them back to the normal place. How do I trigger he deathmatch so that if only one of the units are remaining the deathmatch finishes ( Last man standing wins)? How do I trigger this? I really need your help guys
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Periodically make a unit group in the duel arena of type Hero, if number of units is 1 or 0, end the duel, transport people, heal them, etc.
 

TomTTT

New Member
Reaction score
44
Just as above me said :)D)
When starting the deathmatch, add both taken units to a unit group,
Trigger:
  • Actions
    • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
      • Loop - Actions
        • Unit Group - Add (Triggering unit) to dmGroup
        • -------- Transport them, heal and whatever you want with 'em --------
    • Trigger - Turn on (Deathmatch 2)
    • Trigger - Turn on (Deathmatch 3)

Now you need to make that when a unit dies, it will be removed from dmGroup (units competing in the deathmatch)
Trigger:
  • Deathmatch 2
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is in dmGroup) Equal to True
    • Actions
      • Unit Group - Remove (Triggering unit) from dmGroup

And now when there's only 1 left... :)
Trigger:
  • Deathmatch 3
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
      • (Number of units in dmGroup) Equal to 1
    • Actions
      • -------- Your actions --------
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top