For an effect, I'd like to have a model, say a soldier, change into a different model during the game. As if the ordinary soldier gets powered up and becomes more formidable. Using two mdls, one a normal looking soldier and the other a bulkier montrous looking mdl. I'm sure part of it would be remove me, to take away the first model, and then, entity create.
What function would you write to swap mdls? I know this isn't really complete code below, but it shouldn't be much more complicated than this.
FUNCTION transform_model()
{
ME = soldier; // identifying name of the entity here
// call a function to get the vector of the soldier here
ent_remove(me); // remove the original soldier
ent_create (soldier,<hulk.mdl>,vector,patrol); // bulkier mdl to substitute
}
Would that work? If it does then writing a similar function to restore the
soldier after his powerup wears off would be the same, but swapping the mdls
again.
Thanks