Author Topic: Help Coding Damage  (Read 554 times)

How do you code damage? (Examples please)

%client.player.setDamagelevel(#);

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.

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?

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?

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