Function
EGroup
EGroup_FilterOnScreen
Filters an EGroup by whether units are on screen or not. Percent refers to the screen area you are considering (0.8 is a good value to use - it won't include things that are right at the screen edge).
On this page
EGroup_FilterOnScreen(egroup, percent, filtertype)Description
Setting filtertype to FILTER_KEEP results in the group only containing those entities that are on screen.
Parameters
egroupEGroupIDrequiredpercentRealrequiredfiltertypeIntegerrequired
Returns
VoidSource
Declared in the game's script sources at:
scar/groups.scar