Posts: 62
	Threads: 24
	Joined: Jul 2011
	
Reputation: 
0
	 
 
	
	
		I am building a furniture system with the option to change the object's material. Lets say I change the material for a specific object(through a command), and then I want another option to remove the material and make the object come back with its default material. How can I do that?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 24
	Joined: Aug 2014
	
Reputation: 
0
	 
 
	
	
		I dont get your question...explain it pls?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 24
	Joined: Aug 2014
	
Reputation: 
0
	 
 
	
	
		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
}
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 3,085
	Threads: 37
	Joined: Nov 2012
	
Reputation: 
0
	 
 
	
	
		Or I guess you could also re-create the object. That works too.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 24
	Joined: Aug 2014
	
Reputation: 
0
	 
 
	
	
		That would work too also read my code again i have fixed it...