Hi guys! I need help on how to pass the button number if i'm using one function for several buttons in the same panel. I hope you can help me.

PANEL* charac_pan =
{
layer = 3;
pos_x = 0;
pos_y = 0;
button (10, 0, "horse1.tga", "horse1.tga", "horse3.tga", create_entity1, NULL, NULL);
button (120, 0, "pig1.tga", "pig1.tga", "pig2.tga", create_entity1, NULL, NULL);
button (230, 0, "bat1.tga", "bat1.tga", "bat2.tga", create_entity1, NULL, NULL);
flags = OVERLAY | SHOW;
}