you can put it in the entity's action, like this:
Code:
action your_entity_action
{
// Play film"news.avi" on the entity with maximum volume
media_play("news.avi",bmap_for_entity(my,0),100);
// do all the stuff your entity does
// ...
}
or you can assign a pointer to the entity you want and then play the movie any time, like in the main function:
Code:
entity* tv_model;
function main()
{
//something, something...
level_load("whatever.wmb");
wait(3);
// Play film"news.avi" on the tv_model entity with maximum volume
media_play("news.avi",bmap_for_entity(tv_model,0),100);
//etc, etc, etc...
}
action your_entity_action
{
tv_model = my;
// do all the stuff your entity does
// ...
}