Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Buying Back Dead Buildings
Re: Buying Back Dead Buildings [message #315287 is a reply to message #315282] Sun, 03 February 2008 16:29 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
MadRockz wrote on Sun, 03 February 2008 17:35

Kamuix_Revive_Structure


That script merely sets the health to 500. OK the building is back to life, but it wouldn't set the dependancies back again. By that I mean if the HON died then you set it's health back to 500, it would technically be alive, but you would not be able to buy advanced infantry (even leaving and rejoining).

Here..
I wrote a simple chat hook to do just that actually, you can see for yourself this way.

class idChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
         int BuildingID = Commands->Get_ID(Find_Soldier_Factory(0));
		 		GameObject *thebuilding = Commands->Find_Object(BuildingID);
				char mad[255];
					Console_Input(mad);
					sprintf(mad,"msg Setting Hand Of Nod health to 100");
					Console_Input(mad);

		Commands->Set_Health(thebuilding,100);

	}
};
ChatCommandRegistrant<idChatCommand> idChatCommandReg("!id",CHATTYPE_TEAM,0,GAMEMODE_AOW);


That script will set the health of the Hand Of Nod to 100, regardless of whether it is dead or not.. Try it out. It will set the health fine.. But try and buy and advanced character from the PT.
If it was really as simple as setting the health, I would of done it myself Razz



[Updated on: Sun, 03 February 2008 16:31]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: need file name
Next Topic: Predator Stealth?
Goto Forum:
  


Current Time: Tue Feb 18 21:50:09 MST 2025

Total time taken to generate the page: 0.01193 seconds