Simple animation:
First frame: door is closed
second frame: door is fully opened

Now you should be able to interpolate between thoses using the percentage argument.

Example:
Code:
ent_animate(slidingDoor_ent,"opening",50,0); // door is half open


Of course the percentage var should be a real var which is increased or decreased by a loop.