%attackCheckOpponentCount()

Aliases%attackCheckOpponentCount( )
Parametersmobile @attacker, mobile @victim [, boolean @silent ]

    A mobile can only engage a maximum number of opponents at any one time. At
the time of writing the maximum number of opponents is 6. This function
will return 1 if the the victim is able to engage the attacker. Otherwise
0 will be returned. If the attacker is unable to engage the victim then
the attacker will also receive the standard "You can't get a clear shot at
your target!" message. Sending of the message can be prevented by setting
the optional @silent parameter to 1.

Example:

if( !%attackCheckOpponentCount( @actor, @target ) )
{
return
}
endif