hedcrusha 0 Posted January 10, 2007 Hi was just wondering if theres any way of making a health bar for you and the enemy? I know its cool to try and determine your health on the way your soldier looks as to blood and wounds. But also i would like to know how many hit points i have left and also the enemy. Share this post Link to post Share on other sites
iLL 0 Posted January 13, 2007 Yes, it is! but it has its limits, you can either use hint boxes or an animated RSCtitle that could be placed in the top left of the players HUD and could be animated using a script file which checks the damage of the player and then requests a new RSCtitle when the player takes damage. Let me know if this sounds like what your looking for and i'll show you how to make it. Share this post Link to post Share on other sites
hedcrusha 0 Posted January 15, 2007 Thanks for the reply iLL! This sounds just what im looking for. Does this work for enemy as well or just your soldier? Share this post Link to post Share on other sites
iLL 0 Posted January 15, 2007 Ok Hedcrusha, I hope you'll find this useful! Preview: http://www.armaleague.com/public/img/healthbar.jpg Download: http://www.armaleague.com/public/scripts/healthbarv1.Sara.zip Compatibility: MP / SP I don't think it'd be possible to have multiple enemies health bars up on the screen animated with your own BUT, you could use radio triggers to other scripts that can work out the damage of an enemy (like the current one but modified) and you could switch between the different enemies on the hud without needing multiple healthbars on the screen (if you know what I mean  ) Anyway, its just made by 10 or so different images that switch in order to create an animation effect. 'dammage.sqs' is the script that handles the healthbar animation (not the most efficient and cpu friendly script you'll find, but a working one non the less! ) Anyway, I hope that example gives you some kind of inspiration into how you could make what you were after, or you can just use it, I don't mind Anyones welcome to use/modify the script, just credit my name 'iLL' pls! Share this post Link to post Share on other sites
hedcrusha 0 Posted January 15, 2007 Thats great thanks iLL just what i was after. Just out of curiosity will i have to creat a mission in order for this to work or could i use it online or in single player? Also sorry but im noobish when it comes to arma butr were would i have to put this dir with scripts in? Would it be other profiles in my docs then username missions? Share this post Link to post Share on other sites
iLL 0 Posted January 15, 2007 Quote[/b] ]Thats great thanks iLL just what i was after. Just out of curiosity will i have to creat a mission in order for this to work or could i use it online or in single player? You could begin making your mission straight into the example, It'd be much easier for you, or if you already have made the mission and don't want to be transfering everything across just copy the 'description.ext', 'dammage.sqs' and the 'img' folder across to your mission, but remember to execute the menu for the player, EG, name a player West1 or such, and then in a triggers activation field, or a script, type [west1] exec "dammage.sqs" so he will execute the healthbar script for himself. Remember, if you put it in the trigger, be sure to type 'True' in the condition field, this activates the trigger instantly as the mission starts without anything needing to trigger it on. Same goes if you add it to a script it must be executed for it to run the command. And oh yes, I tested the health bar with a buddy, it worked fine over MP and they were no bugs or issues, if you or anyone notices a bug, please PM me and i'll fix it! Thanks. Quote[/b] ]Also sorry but im noobish when it comes to arma butr were would i have to put this dir with scripts in? Would it be other profiles in my docs then username missions? Indeed, you would put the mission in: C:\Documents and Settings\<xp-username>\My Documents\ArmA Other Profiles\<arma-username>\missions\ Then you will see it inside the map editor on the load menu. Share this post Link to post Share on other sites
hedcrusha 0 Posted January 16, 2007 Thanks again iLL. Just an idea not sure if it would work or not but could i depbo a mission wether mp or sp and add the health bar script into the description.ext file or any other file that needs to be told to run the script then repbo it? If so what would i add to these files in order for me to excecute the script? Share this post Link to post Share on other sites