Hello,
i don't wanna waste hudelems so i want to use a shader + an value
PHP Code:
self.healthbar_cross = newClientHudElem(self);
self.healthbar_cross setShader("gfx/hud/hud@health_cross.tga", 10, 10);
self.healthbar_cross.alignX = "right";
self.healthbar_cross.alignY = "top";
self.healthbar_cross.sort = 9001;
self.healthbar_cross.x = x - 20;
self.healthbar_cross.y = y2 - 15;
I want to add self.healthbar_cross setValue(self.preHealth);
But if i do that, the shader doesnt shows anymore.
Any ideas? Or is it just not possible?
And no, i don't want to use another hudelem cause the elem limit for players (thats just useless :/ )