Numeric health indicator help
by Temasek Polytechnic Tp8 · in Torque Game Engine · 05/30/2006 (12:51 am) · 5 replies
I try out a few health indicator but is all default 100 hp, because my game is a multi character single palyer game, so do anyone got any indicator that will go to the actual datablock and retrieve the maxDamage
pls help!!!
pls help!!!
About the author
#2
05/30/2006 (6:22 pm)
Huh don't get you
#3
05/30/2006 (8:15 pm)
Inside your player datablock there is a property called maxDamage. It is set to 100 for the ork. You can change this value in you datablock. This property is referenced in ShapeBaseData, which the playerData is inherited from.
#4
what i mean is how to get this maxDamage from the correct char
example
warrior 100
mage 200
hunter 300
how to show to player that when they select hunter they will had 300 hp
05/31/2006 (1:19 am)
Ya i know from the playerdatawhat i mean is how to get this maxDamage from the correct char
example
warrior 100
mage 200
hunter 300
how to show to player that when they select hunter they will had 300 hp
#5
In your client script referencing the max health part of your HUD
And in your server script somewhere when you've selected your player and have a reference to them
05/31/2006 (1:52 am)
If it's a dynamic GUI that displays depending on the character, youl'd do something like:In your client script referencing the max health part of your HUD
clientCmdSetGUIMaxHealth( %health ){
playerHealthGUI.setText(%health);
}And in your server script somewhere when you've selected your player and have a reference to them
commandToClient( %player.client, 'SetGUIMaxHealth', %player.getDatablock().maxDamage );
Torque Owner Martin de Richelieu