A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/living/query_enemies


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:


This page was generated in LPC

Imprint / Impressum