• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Player Detection

Status
Not open for further replies.
Level 7
Joined
Feb 23, 2020
Messages
253
Hello, i have a question about this trigger, it works perfectly BUT i want it to work for except one unit(Which is not playing, Light blue). Its for a castle defense, and i dont want the castle itself to be removed, which is owned by Light Blue.

  • Player Detection
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • For each (Integer PlayerDetection_INT) from 1 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player(PlayerDetection_INT)) slot status) Not equal to Is playing
            • Then - Actions
              • Set VariableSet PlayerDetection_Group = (Units owned by (Player(PlayerDetection_INT)).)
              • Unit Group - Pick every unit in PlayerDetection_Group and do (Actions)
                • Loop - Actions
                  • Set VariableSet PlayerDetection_Unit = (Picked unit)
                  • Unit - Remove PlayerDetection_Unit from the game
                  • Custom script: set udg_PlayerDetection_Unit = null
              • Custom script: call DestroyGroup( udg_PlayerDetection_Group )
            • Else - Actions
 
Status
Not open for further replies.
Top