objectid = CreateObject( 2587, 2001.195679, 1547.113892, 14.283400, 0, 0, 96 ); //Creation de l'objet
DestroyObject(objectid);//Destruction de l'objetpour un ensemble d'objet ca devient plus complexe
Il faut te faire un tableau avec tes objets dedans .
après tu fait une boucle for.
for(i=0;i<Nombre_dobj;i++)
{
objectid[i] = CreateObject(Listobj[i][0],Listobj[i][1],Listobj[i][2],Listobj[i][3],Listobj[i][4],Listobj[i][5],Listobj[i][6])
}
puis quand tu veux changer
for(i=0;i<Nombre_dobj;i++)
{
DestroyObject(objectid[i]);
}
Fin bon je suis pas sur que c'est une bonne solution lorsque il y a plusieurs centaines d'objets.