1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How to create this?

Discussion in 'World Editor Help Zone' started by Code_Name_XXX, Oct 17, 2013.

  1. Code_Name_XXX

    Code_Name_XXX

    Joined:
    Aug 21, 2012
    Messages:
    93
    Resources:
    0
    Resources:
    0
    How to create this?

    I'm creating a escape map, an easy one for my sake. Its just a simple unit moving from left to right. My problem is: When the unit is looking from the left, if I ordered my unit to pass through the right, then my unit will never be seen, and vice versa. How to do it?
     
  2. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,549
    Resources:
    23
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    5
    JASS:
    3
    Resources:
    23
    Explain your problem a bit better, please.
     
  3. Code_Name_XXX

    Code_Name_XXX

    Joined:
    Aug 21, 2012
    Messages:
    93
    Resources:
    0
    Resources:
    0
    Ok... The unit is moving from left to right. Like from the game, Snake. The guards had this Aoe effects, if Snake is too near it, the Aoe became red. Just like that.
     
  4. Daffa

    Daffa

    Joined:
    Jan 30, 2013
    Messages:
    8,213
    Resources:
    31
    Packs:
    1
    Maps:
    9
    Spells:
    18
    Tutorials:
    3
    Resources:
    31
  5. Code_Name_XXX

    Code_Name_XXX

    Joined:
    Aug 21, 2012
    Messages:
    93
    Resources:
    0
    Resources:
    0
  6. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,549
    Resources:
    23
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    5
    JASS:
    3
    Resources:
    23
    Poste your map, please.
     
  7. Code_Name_XXX

    Code_Name_XXX

    Joined:
    Aug 21, 2012
    Messages:
    93
    Resources:
    0
    Resources:
    0
    If you think my question is to indescribable, maybe I should stop before I get myself being trash talked. Thanks for the time though.
     
  8. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,926
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    i guess he mean, if the guard is facing left then the right road is safe to pass
    by if the guard is facing right instead, the left road is safe but the right is dangerous..
    something like that, i guess

    it's like

    <o ^

    <o = Guard
    ^ = unit
    so the guard didn't notice that unit has passed him because he is facing another direction
     
  9. Daffa

    Daffa

    Joined:
    Jan 30, 2013
    Messages:
    8,213
    Resources:
    31
    Packs:
    1
    Maps:
    9
    Spells:
    18
    Tutorials:
    3
    Resources:
    31
    I understand, this requires complex triggering (not too complex), there is only 1 trigger needed to send the state of the safe zone. You need 2 Booleans (1 left and 1 right) and then you can check the facing of unit to see which place is secure.
    I don't have time to post the triggers yet as its pretty late here.

    Be patient, some people are easier to understand stuff than some other.
     
  10. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,831
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Just check if the units are in front of where the guard is facing via triggers and some math.

    For some advanced line of sight, you may need some geometry.