Forums Index >> Modding >> Tankchanging Problem



Page : <1> :

b20

Hello all!

Well I want to know how to destroy the old tank and bring in a fresh one. For example when I turn a medium tank into a light tank, it just turns it into that tank without destroying the old tank and refreshing it with a light tank.

How can I make it so it refreshes the tank?

Any help would be great. Thanks. :)

-ZeBoLoBoT-

- b20

Sunday, May 29, 2005 at 10:44:50 AM

Use this in a function:

%client.player.startingtankdb = "TANK HERE"; //Change STARTING tank, it wont change it, just after respawn
%client.player.hurtme(999999); //Kill the tank so it respawns with the changed one (optional)


Last edited: Sunday, May 29, 2005 at 10:57:51 AM

Sunday, May 29, 2005 at 10:56:21 AM
b20

So I put this in the codes.cs?

- b20

Sunday, May 29, 2005 at 12:54:44 PM

Well, yea, in the tank changer function somewhere :P (someone that uses dash's codes help :P)


Sunday, May 29, 2005 at 1:25:17 PM

So what you are asking for is a way to reheal after tankchanging.

Have you tried to ad this under the tankchanger code in the dash codes "codes.cs" file

 

                                        
%client.player.hurtMe(-100);

 

MAX

Wednesday, June 01, 2005 at 8:01:07 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald