Name: query_enemies - get all enemies of a living Synopsis: object *query_enemies() Description: The query_enemies-call return an array of enemies. Return value: An array of enemies. Some of them might be 0 (not set), and there can also be enemies that are no real enemies. For example if a player dies, the enemies from before that stay in the list but are marked as stopped fights in another array. Also enemies who are hunted can be in the list. Examples: // Stop all fights of this_player(): object *enemies = this_player()->query_enemies(); int i; foreach(i, enemies) if (enemies[i]) enemies[i]->stop_fight(); this_player()->stop_fight(); See also: living/is_enemy, living/stop_fight, living/attack_object, living/query_attack, living/show_enemies, living/attacked_by