zSkullfox icon

Untitled

zSkullfox | PRO | 04/09/20 08:21:53 PM UTC | 0 ⭐ | 173 👁️ | Never ⏰ | []
text |

1.26 KB

|

None

|

0 👍

/

0 👎

_intel = param[0,objNull];
_duration = param[1,5];
 _cat = param[2,"category"];
_title = param[3,"title"];
_text = param[4,"Information gathered"];
 [
	_intel,											// Object the action is attached to
	_title,										// Title of the action
	"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa",	// Idle icon shown on screen
	"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa",	// Progress icon shown on screen
	"_this distance _target < 3",						// Condition for the action to be shown
	"_caller distance _target < 3",						// Condition for the action to progress
	{},													// Code executed when action starts
	{},													// Code executed on every progress tick
	{ 
	params ["_target", "_caller", "_actionId", "_arguments"];
	player createDiaryRecord ["Diary",  [_arguments select 0,_arguments select 1]];
		deleteVehicle _target;
	},				// Code executed on completion
	{},													// Code executed on interrupted
	[_cat,_text],													// Arguments passed to the scripts as _this select 3
	_duration,													// Action duration [s]
	1,													// Priority
	true,												// Remove on completion
	false												// Show in unconscious state 
] call BIS_fnc_holdActionAdd;	// MP compatible implementation

Comments