ENTITY* plane;
function my_action()
{
...
}
plane = ent_create(....,my_action);