Game Development Community

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?

#1
02/07/2006 (1:41 am)
Please delete, of course the problem is that getDamageLevel returns a number and I did not convert it to a string before trying to spit it out to console :) *blush*