Blockland Forums > Modification Help

Help Coding Damage

Pages: (1/1)

starhuck4619:

How do you code damage? (Examples please)

herb:

%client.player.setDamagelevel(#);

rkynick:

Torque controls damage in the opposite way that an HP system works.
Instead of starting with 100 HP, you start with 0 damage level and all the damage you take adds onto that. Once your damage level is greater than the player datablock's maxdamage you are killed.
If memory serves correctly.

Desolation:

Could you define what type of damage you're trying to "Code"? Are you trying to code damage towards a player, a brick, AIPlayer, ect?

starhuck4619:


--- Quote from: Desolation on July 22, 2010, 03:23:06 PM ---Could you define what type of damage you're trying to "Code"? Are you trying to code damage towards a player, a brick, AIPlayer, ect?

--- End quote ---

Damage to a Player, or even help coding explosions would work.

Pages: (1/1)

Go to full version