26.09.2016, 15:35
Oh i get it now.....
In your objectinfo enum type "defaultmaterial"..
Inside your command with which you make an object do
objectinfo[objectid][defaultmaterial] = material(this will be the objectid that u are giving in command to make object like e.g\makeobj[id][material]) after this make a command like /resetobj [id]
{
\\ here make command like createdynamicobject and for object material use objectinfo[objectid][defaultmaterial] and use x y z coordinates u used while making object they must be like objectinfo[objectid][OposX] and same for y z and rotations
}
In your objectinfo enum type "defaultmaterial"..
Inside your command with which you make an object do
objectinfo[objectid][defaultmaterial] = material(this will be the objectid that u are giving in command to make object like e.g\makeobj[id][material]) after this make a command like /resetobj [id]
{
\\ here make command like createdynamicobject and for object material use objectinfo[objectid][defaultmaterial] and use x y z coordinates u used while making object they must be like objectinfo[objectid][OposX] and same for y z and rotations
}