Unknown

From DarkAI

AI GET ENTITY TARGET X

This command gets the position of the target at the top of the entity's target list. The top target is one that is the closest and visible. If no targets are visible the top target is the one that was most recently visible.

Syntax
return float = AI Get Entity Target X ( Entity Number )

Parameters
Entity Number, The id of the entity you want to check.

Return
The X component of the entity's target's position.