%filterGroup()

Aliases%filterGroup( )
Parametersarray @characters, character @control

    This function returns an array consisting of all the characters found in
the given characters array that are members of the group defined by the
given control character entity. In contrast to the %partyGetMobs()
function, this can be used to get only the group members in the current
room, zone, or whatever. All entities in the characters array should be
pointers and will more than likely have been retrieved from one of the
%xxxGetMobs() functions (where xxx is room, zone, area, etc). The array of
entities returned will be indexed from 1 onward.

Example:

@members = %filterGroup( %roomGetMobs(), @n )