| How do you revive a building? [message #491760] | 
			Sat, 24 September 2016 13:23   | 
		 
		
			
				
				
				  | 
					
						  
						roszek
						 Messages: 296 Registered: June 2010 
						
	Karma: 0
 
					 | 
					Recruit  | 
					 | 
		 
		 
	 | 
 
	
		Like the war factory. 
 
I tried Restore_Building(obj) and it does restore the building but the icons are still locked up. 
 
I seem to recall a topic about this but can't find the answer. :/ 
 
 
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: How do you revive a building? [message #491779 is a reply to message #491760] | 
			Sat, 01 October 2016 01:46    | 
		 
		
			
				
				
				  | 
					
						  
						Gen_Blacky
						 Messages: 3250 Registered: September 2006 
						
	Karma: 1
 
					 | 
					General (3 Stars)  | 
					 | 
		 
		 
	 | 
 
	
		When ever jonwill added the client fix to 4.0 
 
Im surprised you don't know iran. It was you looking at the original functions in mp demo that started it.   
 
| Quote: |  
  
 
 
Whitedragon: 
 
Started working on this. 
 
Full client support, even on non-4.2 servers. 
 
You can revive buildings with the revivebuildingbytype, revivebuildingbypreset, and revivebuildingbyname console commands, or by calling BuildingGameObj::On_Revived directly.
  |  
  
  http://www.renegadeforums.com/index.php?t=msg&th=40362&prevloaded=1& &start=100 
 
 
2.The building netcode will NOT let you toggle the "IsDestroyed" flag from "false" to "true" over the network at all no matter what you do. 
 
I think your client fix was added to 4.2 right? 
		
		
 
   
		[Updated on: Sat, 01 October 2016 01:59] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	
		
		
			| Re: How do you revive a building? [message #491782 is a reply to message #491760] | 
			Sat, 01 October 2016 07:06    | 
		 
		
			| 
				
	 | 
 
	
		I can confirm that based on the current 4.x codebase it will correctly set all the relavent things on the client including IsDestroyed. 
		
		
  Jonathan Wilson aka Jonwil 
Creator and Lead Coder of the Custom scripts.dll 
Renegade Engine Guru 
Creator and Lead Coder of TT.DLL 
Official member of Tiberian Technologies 
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 |