HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Determining whether a Unit is Visible.

11-05-2009, 03:28 AM#1
Neco
Is there any function (in JASS or GUI) that returns whether a unit is visible to a player or not? I'm trying to make an effective AI and this is the only problem I have encountered.

Thanks for any help!
11-05-2009, 03:35 AM#2
Rising_Dusk
Collapse JASS:
constant native IsUnitVisible       takes unit whichUnit, player whichPlayer returns boolean
11-05-2009, 05:04 AM#3
Neco
Well, that was easy. Thanks a lot Rising_Dusk!