hi,
i'm useing the engine SDK.
i have a modle added in WED, it has animation clips . by defult the modle play all its animation clips ,
i want the modle to play a certain animation , this is my code :

Code:
 
ENTITY * MyPlayer;
MyPlayer= ent_for_name("Fighter_mdl_030");
if (MyPlayer)
{
MyPlayer->emask |= DYNAMIC;
}

while (engine_frame())
{
ent_animate(MyPlayer,"Walk",_VAR(10) , ANM_CYCLE);
MyPlayer->pan += _VAR(1);
}



the problem is that the entity don't play the walk animation (its there , and the spilling is right)

now if i created the same model uing the ent_create()

MyPlayer = ent_create(...) insted of MyPlayer = ent_for_name("fighter_mdl_030");
everything work just fine,
so is there any special way to handle entities added in WED regarding animation?

by the way , i've tried it in script , eveything went fine , this proble appear only in higher language


The deference between madness and geniuses is success