• 0

    posted a message on Field of vision

    @aflower: Go

    Already tried that. Wont work...

    Posted in: Miscellaneous Development
  • 0

    posted a message on Field of vision

    Hi there,

    I started mapping again. And found this forum.. I had some basic expirience with WC3/TFT.

    To cut things short, I have a problem. I cant figure out, why this trigger wont work.

    Its pertty simplified to show the basics of this trigger.

    It should automatically reveal the region in front of the unit.

    Field of view
        Events
            Game - Player Any Player types a chat message containing "a", matching Exactly
        Local Variables
            Region1 = No Region <Region>
        Conditions
        Actions
            Unit Group - Pick each unit in (Units in (Selected units for player 1) owned by player 1, with at most Any Amount) and do (Actions)
                Actions
                    Variable - Set Region1 = (Region(((Position of (Picked unit)) offset by 2.0 towards (Facing of (Picked unit)) degrees), 6.0))
                    Region - Attach Region1 to (Picked unit) with offset ((Position of (Picked unit)) offset by 2.0 towards (Facing of (Picked unit)) degrees)
                    Visibility - Auto-reveal Region1 for player 1 when his units are in Region1
    

    But it just reveals for a second and thats it. The unit should be within the region but...

    I'd greatly appreciate any help :)

    Thanks in advance!

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