%getOpponent()

Aliases%getOpponent( ), %fighting( ), %fight( )
Parameterscharacter @entity

    Returns a pointer to the opponent of the given character otherwise returns
"nobody" if the character is not fighting. Character entity may be a
character pointer or keyword.

Example:

if( %getLevel( %getOpponent( @n ) ) > %getLevel( @n ) )
{
silentforce @n scream
}
endif