SC2Mapster Forums

Development > Data

How to get "range line" to appear

  • 3 posts
    #1 Feb 28, 2013 at 20:46 UTC - 0 likes

    I was just wondering how to get the "range line" to appear during placement, and/or when you click on the unit. The line meaning the white circle that appears around the tank whenever you click on it. Thanks!

    #2 Feb 28, 2013 at 20:59 UTC - 0 likes

    That would be the Range type actor. Look at the turrets for the placement version and at the Siege Tank for the unit version. The difference will be the event that initiates the actor, both will probably draw their range value from the host's weapon.

    #3 Feb 28, 2013 at 21:02 UTC - 0 likes

    The actual events that call up a Range actor when placing it are in the PlacementModel actor, whereas if you want it to appear when you select a unit the event needs to be in the unit actor, e.g.:

            <On Terms="StatusOn.*.Selected" Send="Create LaserTurretProtectRange"/>
            <On Terms="StatusOff.*.Selected" Target="LaserTurretProtectRange" Send="Destroy"/>

  • 3 posts

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