yes its possible.. u working on simulation ?
use something like this:
------------------------------
typedef struct
{
ENTITY* entAgent;
int ID;
var variable1;
var variable2;
var variable3;
} structAgent;
structAgent TestAgent[1000];
.......................................
to access each agent.. u can access TestAgent[0].variable1, etc...