Jump to content
Sign in to follow this  
Kydoimos

Addaction and 'White Hand' Icon

Recommended Posts

Hi - I've been playing around with the addaction command and have it working nicely. However, I was curious to know if there's a way you can change the text that pops up in the centre of the screen to one of the icons (in particular the white hand icon) that comes up when you go to pick up clothes, or a weapon, etc. Any ideas?

Share this post


Link to post
Share on other sites

This will add a small parachute, you just need to find the icon for the hand...good luck.

player addAction ["<img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />", "scripts\eject.sqf", [], 1, TRUE, FALSE, "", ""];

This will add a hand but not the exact one you are looking for.

player addAction ["<img image='\a3\ui_f\data\gui\cfg\Hints\actionmenu_ca.paa' />", "scripts\eject.sqf", [], 1, TRUE, FALSE, "", ""];

Edited by cobra4v320

Share this post


Link to post
Share on other sites

Great stuff Cobra - I'll have myself a jolly old .paa hunt when I get home from work :)

Share this post


Link to post
Share on other sites

Cool - I found the icon and got it working - but it's not quite like BI have it. It's smaller and doesn't replace the crosshairs. Also, it appears in the inventory menu as a hand without text. When you add text, it appears in the inventory with the hand, as well as below the cursor (still with the hand). Not to worry too much though.

Edited by Kydoimos

Share this post


Link to post
Share on other sites

I tried playing around with width='64' height='64' and no joy. Make sure you post back on here if you figure something out.

player addAction ["<img image='\a3\ui_f\data\gui\cfg\Hints\actionmenu_ca.paa' width='64' height='64' />", "scripts\eject.sqf", [], 1, TRUE, FALSE, "", ""];

Im also curious what is the location of the hand since I never found it?

Share this post


Link to post
Share on other sites

The hand location is gui\igui\cfg\actions\obsolete - and then take_ca.paa - but it appears very small when you call it in-game. I don't quite know how BI do it. Because they make it disappear from the inventory menu and have it replaced with text. Very strange!

Share this post


Link to post
Share on other sites

_vehicle addaction ["<t color='#ED2744'>Heal</t> <img size='2' image='\a3\ui_f\data\IGUI\Cfg\Actions\heal_ca'/>", "scripts\heal\healnow.sqf", [], 22, true, true, "", "!(_this in (crew _target)) AND (speed _target < 1) AND (damage player)>0.1)"];

this will set the image size roughly about the same as in game and also will add text next to it, I'm not exactly sure on how to remove the text from the middle of the screen but I'm sure someone can figure it out!

http://community.bistudio.com/wiki/parseText

or

http://community.bistudio.com/wiki/Structured_Text

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×