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

Region only toutchdabel when your name is

Status
Not open for further replies.
Level 4
Joined
Oct 14, 2008
Messages
67
Okay, so im making an map and i wanna make an region that can only be walked on by my units. Ex (wird way to say it, but i think you will get it) Allow Quazake units to use region XX els instant move the unit, exept the unit is from team 2.

Its usedabel in vampirism ex only me can build on the spot but vamp can still attack me..

please help me, if you don't understand ill try explain it for my.. btw i know my english sucks -.- :/
 
Level 5
Joined
May 21, 2006
Messages
174
Where Player 12 (Brown) is your "Vampire player".
  • Events
    • Unit - A unit enters Region <gen>
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Owner of (Entering unit)) Equal to Player 12 (Brown)
            • (Name of (Owner of (Entering unit))) Equal to YourNameHere
      • Then - Actions
      • Else - Actions
        • Set tempPoint = (Position of (Entering unit)
        • Set tempPoint2 = (tempPoint) offset by 128.00 towards ((Facing of (Entering unit)) - 180.00) degrees)
        • Unit - Move (Entering unit) instantly to tempPoint
        • Custom script: call RemoveLocation( udg_tempPoint )
        • Custom script: call RemoveLocation( udg_tempPoint2 )
 
Level 4
Joined
Oct 14, 2008
Messages
67
Where Player 12 (Brown) is your "Vampire player".
  • Events
    • Unit - A unit enters Region <gen>
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Owner of (Entering unit)) Equal to Player 12 (Brown)
            • (Name of (Owner of (Entering unit))) Equal to YourNameHere
      • Then - Actions
      • Else - Actions
        • Set tempPoint = (Position of (Entering unit)
        • Set tempPoint2 = (tempPoint) offset by 128.00 towards ((Facing of (Entering unit)) - 180.00) degrees)
        • Unit - Move (Entering unit) instantly to tempPoint
        • Custom script: call RemoveLocation( udg_tempPoint )



Thanks alot! But how do i make the number 3 last and the last ? (and i can't find the place where i make the name thing) :S
 
Status
Not open for further replies.
Top