In my mission Player is able to control a different numbers of teams by the action command.
Every time he call the support of a team the script make a check counting how many units are stored in the team itself:
_num = "count alive _x" foreach ...
Hint format ["Assault team is %1",_num]
I would like to improve this line.
In particular I would like to put the figure of a man (the same one which is in the low of the screen when you're the leader of a squad) inside the hint text. I've read this is possible using "resources".
Do you know how can I add this feature to my script?
You can use cutresources, but it will be a little complicated: you can't add any 'dynamic' text to them, like you are doing with the format command. So basically you will have to make 12 different resources, then determine which one to show depending on how many guys are left in the squad.
To find the picture you are looking for, you will have to depbo one of the game's core .pbo files (data.pbo I think).
Here is my tutorial on cutresources, temporarily hosted since OFPEC is down. After you read it, feel free to post any Q's you have on how exactly to make what you want:
Thank you very much General...
Originally Posted by (General Barron @ Feb. 21 2006,21:22)
Now I'm at work so I can't read your tutorial...
However I have another question:
why you have said (only) 12 different resources?
Feb 22 2006, 07:26
I think he assumed you have only 12 soldiers in your group, because that's the squad limit in OFP.