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   |
 |
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
[Updated on: Sun, 03 February 2008 16:31] Report message to a moderator
|
|
|
 |
|
Buying Back Dead Buildings
By: _SSnipe_ on Sat, 02 February 2008 18:50
|
 |
|
Re: Buying Back Dead Buildings
By: Veyrdite on Sat, 02 February 2008 22:23
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Sat, 02 February 2008 23:35
|
 |
|
Re: Buying Back Dead Buildings
By: hatstand on Sun, 03 February 2008 02:42
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 03:45
|
 |
|
Re: Buying Back Dead Buildings
By: Ethenal on Sun, 03 February 2008 03:46
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 04:11
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Sun, 03 February 2008 11:58
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Sun, 03 February 2008 15:00
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 15:16
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Sun, 03 February 2008 16:40
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 17:32
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Sun, 03 February 2008 18:04
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Mon, 04 February 2008 03:24
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Mon, 04 February 2008 08:24
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 16:29
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Sun, 03 February 2008 20:17
|
 |
|
Re: Buying Back Dead Buildings
By: cnc95fan on Mon, 04 February 2008 10:49
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Mon, 04 February 2008 10:57
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Mon, 04 February 2008 14:20
|
 |
|
Re: Buying Back Dead Buildings
By: Sir Kane on Tue, 05 February 2008 03:30
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Tue, 05 February 2008 13:31
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: jnz on Tue, 05 February 2008 14:21
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Wed, 06 February 2008 10:19
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
|
Goto Forum:
Current Time: Fri Jul 04 06:32:22 MST 2025
Total time taken to generate the page: 0.01043 seconds
|