Game Development Community

Breaking health ect from the data block

by Michael Branin · in Torque 3D Professional · 01/02/2010 (9:29 pm) · 1 replies

Has anyone successfully broken health from the the data block in T3D? For example I would like to have each of my players and NPCs have a different Max health based on a dynamic stat like constitution.

For example if a player has 50 Constitution then thier max health would be 250 ((Consitution X 4) + 50)

If you have broken max health from the datablock in T3d could you walk me through how to do it? I have tried the various resources floating around such as this one

www.torquepowered.com/community/resources/view/9774

But they were written so long ago for a version of torque so much earlier than T3D that I am having trouble following them and from what I have read they do not seem to carry the info over from server to client.

#1
11/17/2010 (6:27 pm)
Michael,

I actually wrote that resource :) but... recently I needed to achieve the same thing in T3d. My work around was simple, I keep track of the HP in script variables and I use the health hud to show a percent. So everyones "health" value is between 0 and 100 and that is a percent by taking their current health/max health. I update it on damage.

Vince