This function returns an array consisting of all entities within the entities array that are visible to the character entity. All entities in the entities array should be pointers and will more than likely have been retrieved from one of the %xxxGetItems() or %xxxGetMobs() functions (where xxx is room, zone, area, etc). The character entity; however, may be a character keyword or pointer. The array of entities returned will be indexed from 1 onward.
Example:
@targets = %arrayMergeValues( %roomGetItems(), %roomGetMobs() ) @visible = %filterVisible( @targets, @n ) |