herhor67 4 Posted May 18, 2017 Hello, Is this possible to make one tank's hp bar wider than another's? I thought about something like backgroundWidth = maxHP/(2*vehicleLevel) so eg. Maus would have 3200/20 = 160px, churchill1 would have 700/10 = 70px and T1 would have 115/2 = 58px. Of course current hp would be: width = HP/(2*vehicleLevel) Is this possible? Quote Share this post Link to post Short link Share on other sites
konrad509 445 #391050 Posted May 18, 2017 Should be. Quote Share this post Link to post Short link Share on other sites
herhor67 4 #391056 Posted May 18, 2017 Maybe Im doing something wrong, but none of these works: "width": "{{hp-max}}", "width": {{hp-max}}, Is there any other place I could change it, instead of markersAlive? Quote Share this post Link to post Short link Share on other sites
konrad509 445 #391059 Posted May 18, 2017 Hmm, it appears that you can't use macros in width/height. Quote Share this post Link to post Short link Share on other sites
herhor67 4 #391093 Posted May 18, 2017 This was quite strange. When I used {{hp-max}} XVM threw error about letter H, looks like { are OK... But still bars were working normally, every had default 70px. When I used "{{hp-max}}" the bar was empty (I could see the number, but not background or bar). I will try tomorrow if it works with "70", if no, then just need to convert string to number, if yes, then I will ask dev about it. Quote Share this post Link to post Short link Share on other sites