GetDamageLevel within processTick?
by Dave Young · in RTS Starter Kit · 02/06/2006 (1:25 pm) · 1 replies
This is a nobrainer, but I can't find the correct syntax.
Inside the processTick event within RTSUnit.cc I need to know what the current damage level is.
I've tried shapeBase->getDamageLevel, damageLevel, mDamage, this->getDamageLevel()
None of these return anything. I can read getDamageState just fine, it seems that getDamageLevel() should return a number since RTSUnit is derived from ShapeBase...
Anyone have an idea for the correct syntax?
Inside the processTick event within RTSUnit.cc I need to know what the current damage level is.
I've tried shapeBase->getDamageLevel, damageLevel, mDamage, this->getDamageLevel()
None of these return anything. I can read getDamageState just fine, it seems that getDamageLevel() should return a number since RTSUnit is derived from ShapeBase...
Anyone have an idea for the correct syntax?
Torque 3D Owner Dave Young
Dave Young Games