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 do i make a prey run away trigger?

Discussion in 'Triggers & Scripts' started by vlekje5, Dec 16, 2011.

  1. vlekje5

    vlekje5

    Joined:
    Dec 1, 2010
    Messages:
    255
    Resources:
    0
    Resources:
    0
    hello can somone tell me how to make an trigger for prey? like in the game islandtrolltribes..., im currently making a map where thats necesairy

    thx for all who respond... :D
     
  2. Kadabra

    Kadabra

    Joined:
    Nov 16, 2011
    Messages:
    53
    Resources:
    0
    Resources:
    0
    In the Object Editor: Remove it's attack. Set the Can Flee = True. Add Ability Wander to it
     
  3. vlekje5

    vlekje5

    Joined:
    Dec 1, 2010
    Messages:
    255
    Resources:
    0
    Resources:
    0
    it haves but it only flees when i atack it and it doustn go far... in Itt it keeps running and runnig, and its neutral until u atack it ... still thx for the hint :D
     
  4. Kadabra

    Kadabra

    Joined:
    Nov 16, 2011
    Messages:
    53
    Resources:
    0
    Resources:
    0
    When a unit is attacked and your conditions are meet(is it prey), then set Polar offset toward the facing direction of the attacking unit and order the attacked unit to move to the point. You can set it to run away to the other corner of the map or outside the map.