Blockland Forums > Modification Help
Adding Health via Damage
(1/2) > >>
Mega-Bear:
I'm wondering, is it possible to add health to the player if they damage another player through a script? I searched "adding health" in Coding Help and din't get ay results, so some help would be nice. For example, the Black Box adds fifteen health everytime you damage another player. I want to know if the same thing can be done in a script.

Thanks for help.
otto-san:
definitely yes.

I'm sure it'd be as simple as modifying ProjectileData::Damage to add health to the person shooting.
Wheatley:
You mean like, adding health to yourself when you do damage?
Or a projectile adding health to its target?

Either way, I recommend you refer to the TF2 Medic pack.
Wizzeh:

--- Quote from: Wheatley on August 03, 2011, 11:59:51 PM ---You mean like, adding health to yourself when you do damage?
Or a projectile adding health to its target?

Either way, I recommend you refer to the TF2 Medic pack.

--- End quote ---

Alternatively, he could look at the sticky thread directly above this topic.
Wheatley:

--- Quote from: Wizzeh on August 04, 2011, 12:02:42 AM ---Alternatively, he could look at the sticky thread directly above this topic.

--- End quote ---
True.

But referring to the medic pack sounds like it's more what he's going for.
Navigation
Message Index
Next page

Go to full version