SC2Mapster Forums

Development > Triggers

Trigger to auto-order unit

  • 6 posts
    #1 Nov 24, 2012 at 05:46 UTC - 0 likes

    Hi guys! I have a little problem with triggers. Player is building structures, and units are automaticaly spawning there. Like merchenaries in marine arena, like all units in Nexus Wars. My question is: how can I send them to attack a point automatically? Like in a Nexus wars and other maps. Unit appears next to structure and immideatly send to other part of map, attacking all enemy unit on its way?

    #2 Nov 24, 2012 at 05:59 UTC - 0 likes

    If the units are automatically trained via trigger then just run a wait for action till the unit is done building and then issue order (attack targeting point).

    When I want your opinion...I'll give it to you!

    http://www.sc2pod.com/achievement.php?id=13361

    #3 Nov 24, 2012 at 10:02 UTC - 0 likes

    No. Units aren't training via trigger. They are training via ability.

    #4 Nov 24, 2012 at 12:38 UTC - 0 likes

    @gillanpolyanskiy: Go

    So what, Make a Trigger which detects new unit trained and give him orders what to do, where to go kill

    http://img27.imageshack.us/img27/8882/abasizedr.jpg

    #5 Nov 24, 2012 at 15:08 UTC - 0 likes

    Simple Tug of War This tutorial I created a while back show's how to achieve this effect. Enjoy.

    For live trigger help add me on Skype

    Username: Mab.youyoux

    Tutorial:Keeping your code clean and organised

    Tutorial:Simple Tug of War system

    Full4

    #6 Nov 27, 2012 at 19:15 UTC - 0 likes

    Thanks for help! Cool article!

  • 6 posts

You must login to post a comment. Don't have an account? Register to get one!