Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripting Arguments!
Scripting Arguments! [message #419031] Mon, 01 February 2010 18:38 Go to next message
T0tNl
Messages: 63
Registered: July 2007
Karma: 0
Recruit
Attach_Script_Once(Get_GameObj(pID), "JFW_Health_Regen", "01.00,4,3")

Just wondering, what the "01.00,4" are for. I'm trying to make the regeneration last for a "specific" amount of time then expire. :P9
Re: Scripting Arguments! [message #419039 is a reply to message #419031] Mon, 01 February 2010 23:38 Go to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
ScriptRegistrant<JFW_Health_Regen> JFW_Health_Regen_Registrant("JFW_Health_Regen","Time:float,TimerNum:int,Points:float ");

First param is how often it grants them some health The second param is just the timer number, but this can be set to anything at all without any consequence. It's actually pretty irrelevant. The Third param is how much health is given to them each time.

It should also be noted that this script has a flaw. If you make the first param a small number, and the health granted a small number, when the person is killed, it will try giving them health still, and the game counts you as killed when your health goes below 0. So it's possible that say if someone is killing you with an MRLS, that you die multiple times.

To have it last a certain amount of time you would have to remove that script, it doesn't do what you want it to do.



Previous Topic: alien/xenomorph modle
Next Topic: How to build server
Goto Forum:
  


Current Time: Sat Nov 16 11:56:14 MST 2024

Total time taken to generate the page: 0.00617 seconds