• 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.

some1's in region, other cant enter?

Status
Not open for further replies.
Level 4
Joined
Feb 19, 2011
Messages
53
is there a way to make a trigger, like some1 is in a special region, and while hes there, no1 else can enter this region?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
What bloodbath said, but a little more specific:

  • Region
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
    • Actions
      • Set Group = (Units in Region 000 <gen>)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Group is empty) Equal to False
        • Then - Actions
          • Set Loc1 = (Position of (Triggering unit))
          • Set Loc2 = (Loc1 offset by 100.00 towards ((Facing of (Triggering unit)) + 180.00) degrees)
          • Unit - Move (Triggering unit) instantly to Loc2
          • Custom script: call RemoveLocation(udg_Loc1)
          • Custom script: call RemoveLocation(udg_Loc2)
        • Else - Actions
      • Custom script: call DestroyGroup(udg_Group)
 
Status
Not open for further replies.
Top