Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Question regarding reviving buildings
Question regarding reviving buildings [message #455191] Mon, 19 September 2011 09:24 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
How do you revive buildings? I've tried using

		int Team;
	for( Team = 0; Team < 2; Team++)
	{
		Console_Input("msg looping"); // DEBUG CRAP
		Restore_Building(Find_Power_Plant(Team));
		Restore_Building(Find_Construction_Yard(Team));
		Restore_Building(Find_Refinery(Team));
		Console_Output("%s\n", Get_Translated_Preset_Name(Find_Refinery(Team)));
		Restore_Building(Find_Repair_Bay(Team));
		Restore_Building(Find_Soldier_Factory(Team));
		Restore_Building(Find_Vehicle_Factory(Team));
		Restore_Building(Find_Com_Center(Team));
	}


But that doesn't seem to work. I've tried both teams, the output from Get_Translated_Preset_Name() is fine.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ChatHistory=C_Key doesnt work anymore
Next Topic: "Unit ready" spam sometimes after joining a 4.0 server
Goto Forum:
  


Current Time: Wed Nov 27 07:43:53 MST 2024

Total time taken to generate the page: 0.00662 seconds