• 0

    posted a message on Unit - Any Unit Enters a distance of f from Unit Problem

    @Skoite: Go

    If i have the syntax wrong, fine. Thats an easy fix.

    however. This is what i need to do:

    Event (Pseudo or actual) Unit 1 gets within X of Unit 2.

    Make sure Unit 1 is a siege tank, and make sure owning player has researched siege tech. Make sure owner of Unit 1 and owner of Unit 2 are enemy's. order tank to enter siege mode.

    I'm more than open to any ideas of how to accomplish this using auras, behaviors etc. It just seems silly that the event doesnt let you return both units somehow.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Unit - Any Unit Enters a distance of f from Unit Problem

    Im trying to come up with a trigger that will make a siege tank enter siege mode when an enemy ground unit enters within 14. Ive got this so far;

    Siege Tank Handler
        Events
            Unit - Any Unit Enters a distance of 14.0 from (Triggering unit)
        Local Variables
        Conditions
            (Siege Tank - Siege Tech count for player (Triggering player), counting Complete) == 1
            (Unit type of (Triggering unit)) == Siege Tank (Tank Mode)
        Actions
            Unit - Order (Triggering unit) to (Siege Tank - Siege Mode) (Replace Existing Orders)
    

    My problem, is how do i do a check to see if the unit that entered within 14 of the triggering unit is an enemy? There no function to return it :(

    Ive searched but all the workarounds I've found deal with targeted ability which the workaround is to use autocasting, which of course will not work here unless im missing something major.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Detecting teams with triggers impossible?

    I know this wont work for every application of this type of thing, but if you are solidifying teams into attack vs defense, I assume the maps also help determine this?

    Player = (Owner of (Closest unit to AttackersPoint in (Any units in (Entire map) owned by player Any Player matching No Unit Filter, with at most Any Amount))) <Integer>

    This would provide a player that is on the attacking team, you just have to label the start positions with points.

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.