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

Documentation Area

Document Path: /doc/living/is_enemy


Name: is_enemy - check if another living is an enemy of a living

Synopsis:
	status is_enemy(object enemy)

Description:
	The is_enemy-call returns if another living is an enemy. It also
	checks if it is a REAL enemy, that means it is either fighting or
	hunted.

Return value:
	1 if the other living is an enemy,
	0 if not.

Examples:
	if (this_player()->is_enemy(this_object()))
	  say(query_name()+" asks: Why are you killing me?\n");

See also:


This page was generated in LPC

Imprint / Impressum