Unknown

From DarkAI

AI GET ENTITY COUNT TARGETS

This command returns the number of targets the entity has in its target list. Targets remain in the entity's list for a short time after it loses sight of it which allows the entity to remember where previous targets were. As such not all targets in the list may currently be visible but gives a rough idea of how outnumbered an entity may be.

This command works in both manual and automatic mode, in manual mode an entity just doesn't act against the targets.

Syntax
return integer = AI Get Entity Count Targets ( Entity Number )

Parameters
Entity Number, The id of the entity to get the number of targets.

Return
The number of targets the entity has.