HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Line of sight range

05-01-2005, 06:07 PM#1
harel
I don't know if it is going to help someone.
Here is a way to have a line of sight that is farther then 1850.

Code:
peridic
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set MyPoint = (Position of your unit)
        Visibility - Create an initially Enabled visibility modifier for (Local player) emitting Visibility from MyPoint to a radius of 3000
        Custom script: call RemoveLocation(udg_MyPoint)
        Set Visibility[Counter] = (Last created visibility modifier)
        Visibility - Destroy Visibility[(Counter - 1)]
        Set Counter = (Counter + 1)