Wiki 1558 Posted October 21, 2017 Hi guys. Does anyone know how to make the action like in Apex Protocol when we have to rescue the gendarme? Have the action "untie" with the small cicle getting filled when we keep pressing "action" key? Thanks Share this post Link to post Share on other sites
Greenfist 1863 Posted October 21, 2017 https://community.bistudio.com/wiki/BIS_fnc_holdActionAdd Some discussion about it Share this post Link to post Share on other sites
Wiki 1558 Posted October 21, 2017 Oh great, thanks! Just what I've been looking for! However, where can I find the icon list? Share this post Link to post Share on other sites
Salutesh 16 Posted October 21, 2017 50 minutes ago, wiki said: Oh great, thanks! Just what I've been looking for! However, where can I find the icon list? Default path is: \a3\ui_f\data\IGUI\Cfg\holdactions\ But you can create your own once, Use this files to create a configuration for them: CfgHoldactions.cpp /** * CfgHoldActions * * Author: Steve aka Salutesh * * Description: * These configurations are used for the ExileClient_gui_holdActionAdd function within the scavange system to configure the icons. */ class CfgExileHoldActions { class Default { icon = "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_search_ca.paa"; }; class Exile_HA_Icon_Apple { icon = "holdaction\holdAction_appletree_ca.paa"; }; class Exile_HA_Icon_Fruit { icon = "holdaction\holdAction_fruit_ca.paa"; }; class Exile_HA_Icon_Pumpkin { icon = "holdaction\holdAction_pumpkin_ca.paa"; }; class Exile_HA_Icon_Water { icon = "holdaction\holdAction_water_ca.paa"; }; class Exile_HA_Icon_Woodlogs { icon = "holdaction\holdAction_woodlogs_ca.paa"; }; class Exile_HA_Icon_Wreck { icon = "holdaction\holdAction_wreck_ca.paa"; }; }; Hold action creation function: params [["_object", player], ["_label", "Search"], ["_idleIcon", "default"], ["_progressIcon", "default"], ["_conditionShow", "nil"], ["_conditionAction", "nil"], ["_startCode", {}], ["_tickCode", {}], ["_completeCode", {}], ["_interruptCode", {}], ["_arguments",[],[[]]], ["_duration", 0.5], ["_priority", 0], ["_remove", true]]; private _holdAction = []; private _holdActionConfig = missionConfigFile >> "CfgHoldActions"; private _idleIconSelection = getText (_holdActionConfig >> _idleIcon >> "icon"); private _progressIconSelection = getText (_holdActionConfig >> _progressIcon >> "icon"); _holdAction = [_object, _label, _idleIconSelection, _progressIconSelection, _conditionShow, _conditionAction, _startCode, _tickCode, _completeCode, _interruptCode, _arguments, _duration, _priority, _remove, false] call BIS_fnc_holdActionAdd; _holdAction 2 Share this post Link to post Share on other sites