/*
** Usage:
** newmodel = d3d_model_duplicate(oldmodel);
**
** Arguments:
** oldmodel the model you wish to duplicate
**
** Returns:
** the index of the duplicated model
**
** GMLscripts.com
*/
{
var oldmodel, nindex;
oldmodel = argument0;
d3d_model_save(oldmodel,temp_directory+"\ju830ASD83889.mod");
nindex = d3d_model_create();
d3d_model_load(nindex,temp_directory+"\ju830ASD83889.mod");
file_delete(temp_directory+"\ju830ASD83889.mod");
return nindex;
}Note that the temporary filename was assigned by frequently banging my head against the keyboard...
Edited by Schreib, 20 August 2007 - 12:56 PM.











